2,210 views
3 votes
3 votes

Which option is correct?

1 Answer

Best answer
2 votes
2 votes
  Allocated Maximum Need
PA 10211 11212 01001
PB 20110 22210 02100
PC 11010 21310 10300
PD 11110 11221 00111

AND Available $00X11$

Lets take first X=1 

    Then $00111$ now using this you can perform PD, Then allocated Resources to PD will be free....So.

New Avail :: $11110+00111 = 11221$

Now using this free resources you can perform PA..... Then allocated Resources to PA will be free.. So 

New Avail:: $10211+11221 = 21432$

Allocate this avail resources to PC.

After execution of PC avail resources are:: $11010+ 21432=32442$

then allot this to PB.

So, value of should be 1. 

@Mizuki Execution processes is -> PD,PA,PC,PB

selected by

Related questions

3 votes
3 votes
1 answer
2
4 votes
4 votes
1 answer
3
Sanket_ asked Nov 7, 2016
2,754 views
Consider the following system snapshotWhich of the following is a safe sequence?P1, P3, P0, P4, P2P3, P1, P4, P0, P2P3, P4, P1, P0, P2All of these
0 votes
0 votes
0 answers
4
$ourav asked May 18, 2016
1,227 views
Suppose a system has m resources and n processes. The Banker's algorithm was used to check the state for safety, which was found to be proportional to $m^{a}n^{b}$ for su...