CS FundamentalsHardProduct-company MCQ pattern

How many of the following statements about deadlock are correct? 1. Requiring a process to request all its resources at once prevents hold-and-wait but can lower resource utilisation. 2. Imposing a total order on resource types and requesting them only in increasing order prevents circular wait. 3. An unsafe state always means the system is deadlocked. 4. The Banker's algorithm needs each process to declare its maximum demand in advance.

  1. A. Only one
  2. B. Only two
  3. C. Only three
  4. D. All four

Correct answer: C. Only three

1, 2 and 4 are correct. 3 is false: an unsafe state only means deadlock is possible; processes may release resources before requesting their maximum, so it may never happen.

More Operating Systems questions

Exams that ask this topic