CS FundamentalsModerateGATE CS

Which deadlock-handling idea attacks the CIRCULAR WAIT condition?

  1. A. Require each process to request all its resources at once before starting
  2. B. Allow the OS to take a resource away from a waiting process
  3. C. Make resources sharable wherever possible
  4. D. Number all resource types and require every process to request them in increasing order

Correct answer: D. Number all resource types and require every process to request them in increasing order

A global ordering makes a cycle of waits impossible. Requesting everything at once attacks hold-and-wait, preemption attacks no-preemption, and sharing attacks mutual exclusion.

More Operating Systems questions

Exams that ask this topic