recategorized by
5,509 views
3 votes
3 votes

Consider a system having ‘m’ resources of the same type. These resources are shared by three processes $P_{1} , P_{2}$ and $P_{3}$ which have peak demands of $2, 5$ and $7$ resources respectively. For what value of $'m'$ deadlock will not occur ?

  1. $70$
  2. $14$
  3. $13$
  4. $7$
recategorized by

3 Answers

6 votes
6 votes
Peak demands of p1,p2,p3 are 2,5 and 7.

allocate 1 less than peak demand  i.e,, p1 --> 1 ,p2-->4 ,p3-->6

the number of resources for which deadlock occurs is 1+4+6 = 11

Add one to the number of resources we get 12 ,the value for which deadlock will not occur . ( 13 is nearest possible answer )
3 votes
3 votes
For deadlock free condition , at least one process will be given full no of resouces and rest of processes will be given 1 less their max demands.

So (2-1) + (5-1) + 7 = 1 + 4  = 12

Hence A,B and C all satisfy the criteria .

So the correct options should be A,B and C

Related questions