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)?
- 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
- B. It allows circular wait
- C. It requires preemption of CPUs
- 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
- Deadlock recovery by process termination: which criteria are sensible for choosing a victim? 1. Lowest priority 2. Least CPU time consumed…
- An OS uses the Banker's algorithm. Which assumption must hold for it to be applicable?
- Processes (arrival, burst): P1 (0, 6), P2 (1, 8), P3 (2, 7), P4 (3, 3). Under SRTF, what is the turnaround time of P2?
- Preemptive priority scheduling (smaller number = higher priority; equal priority is FCFS and does not preempt). Processes (arrival, burst…
- Five processes all arrive at time 0 in the order P1 (10), P2 (1), P3 (2), P4 (1), P5 (5) (bursts in ms). What is the average waiting time…
- Processes (arrival, burst): A (0, 3), B (2, 6), C (4, 4), D (6, 5), E (8, 2). By how much does SRTF reduce the average waiting time…