Inspired by the similarity between ant foraging behavior model and task allocation production process selection in manufacturing system, a pheromone-based coordination mechanism for task allocation is proposed. The pheromone-based static and dynamic coordination algorithms for production process selection in manufacturing system are given. The simulation results demonstrate that relatively lower processing costs as well as the balanced utilization of machines can be achieved by using the proposed algorithm, which has high adaptability to the disturbance from inside or outside of the manufacturing system. It provides a new feasible idea for dealing with an actual allocation problem of production tasks.