1,154 views
6 votes
6 votes
Consider a system having 'm' resources of the same type. These resources are shared by 3 processes A, B and C, which have peak time demands of 3, 4 and 6. The minimum value of 'm' that ensures that deadlock will never occur given that the combined maximum resource requirement of processes B and C at any time is 8 will be ______.

2 Answers

Best answer
13 votes
13 votes
Answer is - 9

B and C at any time require maximum 8 resources. So, for deadlock to happen, only 6 resources must be allocated to B and C together. (If 7 is allocated either B or C can continue execution). Since A has peak demand of 3, in worst case for deadlock, it must be allocated 2 resources. So, maximum no. of resources that can be allocated during deadlock is 6 + 2 = 8. With 1 extra resource deadlock won't happen and hence answer is 9.
selected by
0 votes
0 votes
Answer must be 8
Answer:

Related questions

2 votes
2 votes
2 answers
1
1 votes
1 votes
1 answer
2
Bikram asked Sep 3, 2016
234 views
An operating system contains 3 user processes each requiring 2 units of resource R. The minimum number of units of R such that no deadlocks will ever arise is ____ (assum...
2 votes
2 votes
2 answers
3
Bikram asked Sep 3, 2016
724 views
In a multi-user operating system, 20 requests are made to use a particular resource per hour, on average. The probability that no requests are made in 45 minutes is -$e^-...
3 votes
3 votes
1 answer
4