recategorized by
26,654 views
23 votes
23 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 demands of $3, 4$, and $6$ respectively.  For what value of $m$ deadlock will not occur?

  1. $7$
  2. $9$
  3. $10$
  4. $13$
  5. $15$
recategorized by

5 Answers

3 votes
3 votes

Condition for deadlock free

R >= Sum(p×(n-1))+1

 

Here R= total no. Of resources

n= Max demand of resources for each process p

m >= ([1×(3-1)]+[1×(4-1)]+[1×(6-1)]) +1

m>=(2+3+5)+1

m>=11 : for deadlock free

So, answer should be 13,15

Answer:

Related questions

2 votes
2 votes
1 answer
3