CS FundamentalsModerateWipro Elite · LTIMindtree
Numbering all resource types and requiring every process to request resources only in increasing order of number prevents deadlock by eliminating which necessary condition?
- A. Mutual exclusion
- B. Hold and wait
- C. Circular wait
- D. No preemption
Correct answer: C. Circular wait
With ordered requests, a cycle of waiting processes would need a resource number to be both larger and smaller than another, so circular wait is impossible.
More Operating Systems questions
- Three processes with bursts 10, 5 and 8 ms arrive together at time 0 in the order P1, P2, P3 and are scheduled by Round Robin with a…
- Preemptive priority scheduling (lower number = higher priority) is used for P1 (arrival 0, burst 7, priority 3), P2 (1, 4, 1), P3 (2, 2…
- Processes P1 (arrival 0, burst 8), P2 (1, 4), P3 (2, 9) and P4 (3, 5) are scheduled by SRTF (preemptive shortest remaining time first)…
- Banker's algorithm: Available = (3, 3, 2). Allocation / Max for (A, B, C): P0 (0,1,0)/(7,5,3), P1 (2,0,0)/(3,2,2), P2 (3,0,2)/(9,0,2), P3…
- A system uses a two-level page table. A TLB lookup takes 10 ns, a memory access takes 100 ns and the TLB hit ratio is 80%. On a TLB miss…
- The reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 is run under FIFO replacement first with 3 frames and then with 4 frames (all…