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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started