- GATE CS
- 2026–27 pattern practice
- Operating Systems
- Deadlocks
- Easy
Numbering all resource types and requiring every process to request resources only in increasing order of these numbers prevents deadlock by eliminating which condition?
Process Management
Pick an option to check your answer.
Answer: B. Solution
A deadlock cycle would need some process holding resource while waiting for with . Ordered requests forbid exactly that, so no cycle of waiting processes can form. The ordering therefore breaks circular wait.
Why not the others
- Mutual exclusion is untouched; resources are still held exclusively.
- Hold and wait still occurs, because a process may hold lower-numbered resources while waiting for a higher one.
- No preemption is untouched; nothing is taken away from a process.