A system has 6 identical resources and N processes competing for them. Each process can request at most 2 resources. Which one of the following values of N could lead to a deadlock?
A |
1 |
B |
2 |
C |
3 |
D |
6 |
Let's assume that each process request 2 resources each.
Now there is a total of 6 identical resources available.
Give 1 resource to every process then there will be deadlock because now each process will wait for another resource that is not available, so there will be deadlock.
Since there are a total of 6 resources so for the deadlock to be possible there should be 6 processes available.
Hence, the value of N is 6.
Thank You