Question: ************************************************************************************** Develop a program where multiple users can add their processes to the machine, even if it is in use, provided that the process is
**************************************************************************************
Develop a program where multiple users can add their processes to the machine, even if it is in use, provided that the process is of the right type and the machines capacity is not exceeded.
The machine has a maximum capacity of 10 processes.
Each process is either classified/secret or unclassified/open.
Processes of different types may not run simultaneously on the same machine.
Each person attempting to use the machine will call the process_Id Use(itemType: secret/open) routine upon trying to use the machine, and void Remove_ (processId myId) upon removing their item from the machine.
Use() blocks until it is OK for the calling process to use the machine.
process_Id Use(itemType type) { }
void Remove_ (processId myId) { }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
