386 views
1 votes
1 votes
Given a system with 3 processes where each process requires at least 2 resources to complete their execution, then the largest number of resources which will guarantee a deadlock is ___


 

I answered it as 3. Because it asked for maximum which is not correct. Can someone help me in this.

1 Answer

1 votes
1 votes
You have answered 3 which is correct.

Let each process acquire 1 resource each. Then each one would need 1 more resource. Now the minimum number of resources which will guarantee deadlock is never reached is 3 + 1 = 4. Hence the maximum number of resources which would lead to a deadlock is 3.

Related questions

1 votes
1 votes
1 answer
1
LRU asked Nov 5, 2021
425 views
Given a system with 3 processes where each process requires at least 2 resources to complete their execution, then the largest number of resources which will guarantee a ...
2 votes
2 votes
2 answers
4
LRU asked Oct 10, 2021
683 views
Given 5 processes and R copies of total resources in a system, each process requires 7 copies of resources to complete its execution. The maximum value of R to have deadl...