Skip to content
Mad4Study

Engineering & Science

GATE Computer Science

  • 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.

A deadlock cycle would need some process holding resource RjR_j while waiting for RiR_i with i<ji < j. 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.

Report an error

GATE CS · Operating Systems · Process Management