Question
A system has three resources R1,R2,R3, with total
instances 5, 3, and 4, respectively. Processes P1,P2,P3 are allocated (2, 1, 2), (1, 1, 1), and (1, 1, 2). The remaining needs are (1, 1, 1), (1, 1, 2), and (1, 1, 0). Can the system avoid deadlock?Solution
Using the Banker’s Algorithm, we determine if the system can execute all processes without entering a deadlock. 1. Available resources initially: R1=1,R2=0,R3=0 2. If P1 finishes first, it releases R1=2,R2=1,R3=2. Available becomes R1=3,R2=1,R3=2. 3. Now P2 can execute, releasing R1=1,R2=1,R3=1. Available becomes R1=4,R2=2,R3=3. 4. Finally, P3 completes, releasing all its resources. Hence, no deadlock occurs if P1 is completed first. Why Other Options Are Incorrect: • B) No, deadlock is inevitable: Incorrect because deadlock can be avoided by choosing the correct execution order. • C) & D): Incorrect as P2 or P3 cannot execute first due to insufficient resources. • E) Insufficient data: Incorrect as the problem provides all necessary data.
- How many Anthurium flowers were included in the first export consignment from Mizoram to Singapore?
On 07 August 2025 in New Delhi, declassified versions of which joint doctrines were released by the CDS?
According to the performance grading index (PGI) 2.0,which two states/ut have achieved Grade Prachesta -2 ?
_______ is appointed as the Interim President of Indian Olympic Association?
Who among the following has become the first ever Railway officer and also the first ever officer from the non-uniformed Civil Services to complete the ...
How much budget has been allocated for the extension of Pradhan Mantri Fasal Bima Yojana (PMFBY) and Restructured Weather Based Crop Insurance Scheme?...
Which country recently conducted a test of a new tactical ballistic missile called Hwasongpho-11 Da-4.5, designed to carry a 4.5-ton weapon?
The acceleration of the ocean current connecting the Indian, Atlantic, and Pacific oceans has been linked to which global condition?
Which of the following statements is/are not correct in regards to budget 2023-24?
1.   ‘Bharat Shared Repository of Inscriptions’ to be ...
How many Lok Sabha and State Assembly statistical reports can be generated through the Election Commission’s new Index Card system?