A system has 6 identical resources and N processes competing for them....
As there are 6 identical resources and Max requirement is 2, hence Max. number of process can be allowed is
But when the number of process is more than 5

View all questions of this test
A system has 6 identical resources and N processes competing for them....
To understand why option D (N = 6) could lead to a deadlock, let's analyze the scenario step by step.
1. Initial State:
- There are 6 identical resources available.
- No processes have acquired any resources yet.
2. Process 1:
- Process 1 starts and requests 2 resources.
- As there are enough resources available, Process 1 acquires the requested resources.
3. Process 2:
- Process 2 starts and also requests 2 resources.
- Since there are still 4 resources available, Process 2 acquires the requested resources.
4. Process 3:
- Process 3 starts and requests 2 resources.
- Now, there are only 2 resources remaining, and Process 3 cannot acquire the requested resources.
- Process 3 is put into a waiting state until the required resources become available.
5. Process 4:
- Process 4 starts and requests 2 resources.
- Since there are still 2 resources available, Process 4 acquires the requested resources.
6. Process 5:
- Process 5 starts and requests 2 resources.
- Now, there are no more resources available, and Process 5 cannot acquire the requested resources.
- Process 5 is put into a waiting state until the required resources become available.
7. Process 6:
- Process 6 starts and requests 2 resources.
- As there are no more resources available, Process 6 cannot acquire the requested resources.
- Process 6 is put into a waiting state until the required resources become available.
At this point, Processes 3, 5, and 6 are waiting for resources that are not currently available. This situation is known as a deadlock because none of these processes can proceed further without the required resources, and the resources they need are held by other processes that are also waiting.
Hence, option D (N = 6) could lead to a deadlock because when all 6 processes request 2 resources each, there will not be enough resources available to satisfy all the requests simultaneously, resulting in some processes being unable to proceed and waiting indefinitely for the required resources.