GATE 2010
April 6, 2025GATE 2001
April 6, 2025GATE 2000
|
Question 21
|
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) mode 4]); ------ release (m[i]); release (m[(i+1)mod 4]);
This could cause:
|
Thrashing
|
|
|
Deadlock
|
|
|
Starvation, but not deadlock
|
|
|
None of the above
|
Question 21 Explanation:

Correct Answer: B
Question 21 Explanation:

