Question: Three persons are involved in processing pizza orders. Person A reads the order from the computer and put the pizza into oven. Person B takes

Three persons are involved in processing pizza orders. Person A reads the order from the computer and put the pizza into oven. Person B takes the pizza from oven to quality control desk (QCD). Finally, Person C takes the pizza from QCD and hands it over to the customer. (I know, this is oversimplification. Also, consider, it requires no time to prepare/cook/quality-control the pizza.) Assume all three persons operate on one pizza at a time, both oven and QCD have capacity of one pizza. Write a program (in a programming language you like) to coordinate the three persons using semaphores.

*include the readme file for running the program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!