Option B :
Refer to Galvin : If (no. of processes * max need of each process) < (no of processes + total no of resources), the deadlock will not occur .
Therefore, in our question, 6*3 < 6+7 ? Which is false , which implies deadlock may occur.
Or if you see it as allocation of resources, assume that :
Process Id |
No of resources allocated |
P1 |
1+1 |
P2 |
1 |
P3 |
1 |
P4 |
1 |
P5 |
1 |
P6 |
1 |
If resources are allocated ike this, its a deadlock.