Let m[0] ...... m[4] be mutexes (binary semaphores) and P[0] ........ P[4] be…

MH-SET 2020

Let m[0] ...... m[4] be mutexes (binary semaphores) and P[0] ........ P[4] be processes. Suppose each process P[i] executes the following :

wait (m[i]); wait (m[(i+1) mod 4]);

.......................

release (m[i]); release (m[(i+1) mod 4]);

This could be :

  1. A.

    Thrashing

  2. B.

    Deadlock

  3. C.

    Starvation but not deadlock

  4. D.

    None of the above

Attempted by 14 students.

Sign up free to check your answer

Sign up free

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…