recategorized by
9,138 views
6 6 votes

Consider a system having $m$ resources of the same type. These resources are shared by $3$ processes $A, B, C,$ which have peak time demands of $3, 4, 6$ respectively. The minimum value of $m$ that ensures that deadlock will never occur is:

  1. $11$
  2. $12$
  3. $13$
  4. $14$

5 Answers

Best answer
9 9 votes

The sufficient condition for ensuring that deadlock doesn't occur:

                                  Si <n+m

where Si = Total request resource of ith process

         n = Total number of process

        m = Total number of resource

if above condition is false then DL may occur, if the condition is true then-No DL.

for the above problem, total demand is: 3+4+6=13

13<3+m

10<m, the minimum value of m that ensure deadlock is never occurring is 11.

selected by
3 3 votes
Option A is correct.

Maximum requirement of A, B and C are 3, 4 and 6 instances of a resource, respectively. Minimum instances of the resource required without creating a deadlock:

(3-1)+(4-1)+(6-1) + 1 = 11. The last one added is shared among all three.
2 2 votes
Option A, minimum value of m=11 that ensures deadlock will never occur.

So we have three process A, B and C and the peak demands is 3, 4 and 6 respectively, if we allocate A=2 , B=3 and C=5 so with 10 resources there is deadlock but if we allocate one more so deadlock will never occur.
Answer:
Position:
Show:

Related questions

5 5 votes
3 answers 3 answers
14.0k
14.0k views
Arjun asked Apr 22, 2018
14,017 views
The following $C$ program:{ fork(); fork(); printf("yes"); }If we execute this core segment, how many times the string yes will be printed?Only once2 times4 times8 times
4 4 votes
3 3 answers
5.2k
5.2k views
Arjun asked Apr 22, 2018
5,189 views
The difference between a named pipe and a regular file in Unix is thatUnlike a regular file, named pipe is a special fileThe data in a pipe is transient, unlike the conte...
2 2 votes
2 answers 2 answers
1.7k
1.7k views
Arjun asked Apr 22, 2018
1,688 views
Determine the number of page faults when references to pages occur in the order - $1, 2, 4, 5, 2, 1, 2, 4$. Assume that the main memory can accommodate $3$ pages and the ...
6 6 votes
3 answers 3 answers
5.2k
5.2k views
Arjun asked Apr 22, 2018
5,220 views
A computer has $1000K$ of main memory. The jobs arrive and finish in the following sequence. Job $1$ requiring $200$ $K$ arrives Job $2$ requiring $350$ $...