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.

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-8hours? Order a custom-written, plagiarism-free paper

Get Answer Over WhatsApp Order Paper Now

Do you have an upcoming essay or assignment due?

All of our assignments are originally produced, unique, and free of plagiarism.

If yes Order Paper Now