Write a concurrent program using pthreads to model the following manufacturing production system. At

Write a concurrent program using pthreads to model the following manufacturing production system.

At the ABC widget factory, three production lines are constantly working. All three lines require the same basic tools in order to do their jobs. However, each lineproduces a different product. Line A requires the following tools in this order: Hammer, Drill, and Brush, Line B requires the following tools in this order: Saw,Hammer, Brush, and Line C requires the following tools in this order: Drill and Brush. People often work at different paces so, the pace at which these lines producetheir product is different. At the ABC widget factory there is exactly one of each tool (1 hammer, 1 drill, 1 brush, and 1 saw). Your simulation must avoid deadlock,livelock or starvation.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *