CS FundamentalsModerateProduct-company MCQ pattern
Four processes share a pool of identical resource instances, and each process needs at most 3 instances to finish. What is the minimum number of instances that guarantees deadlock can never occur?
- A. 10
- B. 8
- C. 9
- D. 12
Correct answer: C. 9
Worst case: each process holds 3 − 1 = 2 instances and waits for one more, using 4 × 2 = 8. One extra instance lets some process finish, so 8 + 1 = 9 is the minimum. With 8, all four can be stuck.
More Operating Systems questions
- A counting semaphore S is initialised to 5. Then 7 wait (P) operations and 3 signal (V) operations are performed on it in some order. What…
- A process of size 13,000 bytes is loaded with paging, page size 4,096 bytes. How much internal fragmentation is there in its last page?
- Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (ms). Using non-preemptive…
- A child process has terminated, but its parent has not yet called wait() to read its exit status. The child is now a:
- In a many-to-one thread model (many user-level threads mapped to one kernel thread), what happens when one thread makes a blocking system…
- Which disadvantage applies to linked file allocation but NOT to indexed allocation?