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

GATE · 1997 · CS · Question 6 subparts

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

repeat 

    P(mutex)

    {Critical section}

    V(mutex)

 forever

The code for P10 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 490 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…