Question: Suppose a processes is executing a monitor's procedure, using signals, and gets to the following code: cwait ( c ) / / Do Some Stuff
Suppose a processes is executing a monitor's procedure, using signals, and gets to the following code:
cwaitc
Do Some Stuff
csignalc
What can or will happen to the processes?
If this is not the first process to call cwaitc then it will block until another process calls csignalc Then, after calling csignalc the process continues execution.
If this is not the first process to call cwaitc then it will block until another process calls csignalc Then, after calling csignalc it might block again.
The process will block, and may continue after another processes calls csignalc Then, after calling csignalc the process continues execution.
The process will block, and may continue after another processes calls csignalc Then, after calling csignalc it might block again.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
