CS FundamentalsHardGATE CS

Which statement about deadlock in a system with only ONE resource type that has 10 instances is correct?

  1. A. Deadlock is impossible with a single resource type
  2. B. Every cycle implies deadlock
  3. C. Deadlock requires at least two resource types
  4. D. A cycle in the resource-allocation graph does not by itself imply deadlock, because other instances may be released

Correct answer: D. A cycle in the resource-allocation graph does not by itself imply deadlock, because other instances may be released

Processes can deadlock over instances of one type (each holds some and waits for more). With multiple instances, a cycle is necessary but not sufficient; the detection algorithm must check whether requests can be satisfied.

More Operating Systems questions

Exams that ask this topic