542 views

2 Answers

1 votes
1 votes
Minimum value of n= 3 as if their are three process and each process requires at most 4 (max 4) instance of resources , so while having 3 process ,suppose each process had acquires 3 (max-1)resouces so, in this case no process can execute and can get 1 resouces and the system will be in deadlock .
1 votes
1 votes
only 2 process no possibility of deadlock

3 process deadlok may or may not occur (deadlock  3,3,3 rest combinations are deadlock free) this could be ans if they had asked what is the minimum possible value of n which could lead to a deadlock?

4 process again deadlock may or may not occur (deadlock 3,2,2,2  deadlock free 4,2,2,1 etc )

5 process again deadlock may or may not occur (deadlock free 4,2,1,1,1 )

and so for 6 processes deadlock may or may not occur (deadlock free 4,1,1,1,1,1)  

for 7 process (3,1,1,1,1,1,1) deadlock is must so it will surely lead to deadlock hence ans should be 7

after 7 i.e for 8 ,9 etc deadlock is must so min value is 7

Related questions

4 votes
4 votes
1 answer
1
Sanjay Sharma asked Apr 30, 2016
6,357 views
A decimal number has25 digits. The number of bitsneeded for its equivalentbinary representation is,approximately, a) 50b) 55c) 80d) 75Explain??
0 votes
0 votes
1 answer
3
0 votes
0 votes
3 answers
4