CS FundamentalsModerateGATE CS

What is the main drawback of deadlock prevention by requiring a process to request ALL its resources before starting (breaking hold-and-wait)?

  1. A. Low resource utilisation and possible starvation, since resources are held long before they are needed and a process needing many popular resources may wait indefinitely
  2. B. It allows circular wait
  3. C. It requires preemption of CPUs
  4. D. It makes Banker's algorithm unnecessary but deadlock still possible

Correct answer: A. Low resource utilisation and possible starvation, since resources are held long before they are needed and a process needing many popular resources may wait indefinitely

Pre-claiming all resources prevents deadlock but locks resources away from others for the whole run, and a greedy process may never find all of them free at once.

More Operating Systems questions

Exams that ask this topic