CS FundamentalsHardGATE CS
A system has R identical instances of a resource shared by 4 processes needing at most 3, 4, 5 and 2 instances respectively. What is the minimum R that guarantees no deadlock, whatever the request order?
- A. 14
- B. 10
- C. 11
- D. 15
Correct answer: C. 11
Worst case: every process holds one less than its maximum, (3−1)+(4−1)+(5−1)+(2−1) = 10 instances, and none can finish. One more instance (R = 11) lets some process complete. 14 is the sum of maxima, which is more than needed.
More Operating Systems questions
- n processes share 12 identical units of a resource, and each process may need up to 4 units. What is the largest n for which deadlock is…
- k processes each need at most 3 instances of a resource that has 7 instances in total. Requests are made one instance at a time. What is…
- Deadlock detection (multi-instance). Available = (0,0,0). Allocation: P0 (0,1,0), P1 (2,0,0), P2 (3,0,3), P3 (2,1,1), P4 (0,0,2). Current…
- In a resource-allocation graph where EVERY resource type has exactly one instance, which statement is correct?
- Which deadlock-handling idea attacks the CIRCULAR WAIT condition?
- How many of these statements about deadlock are correct? 1. A safe state guarantees that no deadlock will occur if processes follow their…