Let each process Pᵢ, i=1 to 7 executes the following code. repeat
Let each process Pᵢ, i=1 to 7 executes the following code.
repeat
P(mutex);
CS
V(mutex);
forever
The process P₈ executes the following code:
repeat
V(mutex);
CS
V(mutex);
forever
What is the maximum number of processes that can be present in the critical section at any point of time? Given that the initial value of binary semaphore variable "mutex" is 1.
Show answerHide answer
Correct answer: (B) 8