Each Process Pᵢ, i = 1......9 is coded as follows repeat P(mutex) {Critical…

1997

Each Process Pᵢ, i = 1......9 is coded as follows

repeat
    P(mutex)
    {Critical section}
    V(mutex)
forever

The code for P₁₀ is identical except it uses V(mutex) in place of P(mutex). What is the largest number of processes that can be inside the critical section at any moment?

  1. A.

    1

  2. B.

    2

  3. C.

    3

  4. D.

    None of above

Attempted by 31 students.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Gate Guidance By Sanchit Sir