Description: Problem Description:
An extended case of the producer-consumer model
There are 3 generators and each produces a unique kind of material
independently. All these materials are stored in a input buffer with size
10 before they are forwarded to the operators. We have 3 operators with
same priority who are responsible for producing the products based on
these materials. Each product needs 2 different kinds of materials. Each
time an operator needs 2 tools for this purpose. There are totally 3 tools
provided for these operators. An operator can only process one product at
one time. When an operator gets both the materials and tools, he can
produce a product within a limited time varied from 0.01 second to 1
second. Otherwise, he has to wait until all the necessities are met. He
can grab the materials or tools first, it does not matter, but he can
only get one thing at one time. If an operator decides to make another
product before he starts to make the cur
To Search:
File list (Check if you may need any files):
Debug\Project10.exe
.....\Project10.ilk
.....\Project10.pdb
Main.cpp
Report.pdf
Report.wps
Debug