CS FundamentalsHardGATE CS

How many of these statements about deadlock are correct? 1. A safe state guarantees that no deadlock will occur if processes follow their declared maxima. 2. An unsafe state means the system is necessarily deadlocked. 3. The wait-for graph is obtained from the resource-allocation graph by collapsing resource nodes, and is used for single-instance detection. 4. Ostrich (ignoring deadlock) is used by most general-purpose OSes for many resources.

  1. A. 3
  2. B. 2
  3. C. 4
  4. D. 1

Correct answer: A. 3

1, 3 and 4 are correct. 2 is false: an unsafe state only means deadlock is POSSIBLE; with lucky request patterns the processes may still finish.

More Operating Systems questions

Exams that ask this topic