Question 2
Consider the following resource-allocation situation.
• Process P1 holds resource R1 and waits for R2. • Process P2 holds resource R2 and waits for R3. • Process P3 holds resource R3 and waits for R4. • Process P4 holds resource R4 and waits for R1. • None of the processes releases its held resource until it acquires the requested one.
Which deadlock condition is most directly illustrated by the waiting pattern above?
Mutual exclusion
Preemption
Circular wait
Time sharing