518 views
1 votes
1 votes

NEED=REQUEST-ALLOCATION. am i right?

1 Answer

–1 votes
–1 votes

no here request is same as need and u simply add allocation and u find

 current available =  total available - current allocation

 then we start checking for request or we can say that need ...so here 

 current allocation  ( X,y, Z)   = (11,9,9)   and total available=(12,12,12)

  current available =  total available - current allocation  =>   (12-11 , 12-9, 12-9)  = (1,3,3)

so here first we execute both P1 or P0 anyone

so we move according to option  --->  option A is correct then current available is (4,4,5) so here 2nd time only p0 is exexute so option Band C  is wrong and current available update (9.9.13) then any one execute so option A is correct.

   

Related questions

793
views
1 answers
1 votes
SamAddy asked Jan 20, 2019
793 views
Will there be Mutual Exclusion & Deadlock ?
325
views
1 answers
0 votes
santhoshdevulapally asked Dec 1, 2016
325 views
264
views
0 answers
0 votes
himgta asked Jan 23, 2019
264 views
Suppose that host A is connected to a router R1, R1 is connected to another router R2 and R2 is connected to host B. Suppose that a TCP message that contains 900 bytes of...
238
views
0 answers
3 votes
santhoshdevulapally asked Nov 29, 2016
238 views
i got 0.092ns but how it is 92MIPS?