in Operating System
459 views
1 vote
1 vote

NEED=REQUEST-ALLOCATION. am i right?

in Operating System
459 views

4 Comments

here you need not to calculated remaining need already given in Request form .
1
1

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.

   

0
0
0
0

1 Answer

–1 vote
–1 vote

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.

   

1 comment

so here first we execute both P1 or P0 anyone

above statement not true as  first execution will be done by p1 first !!  p0 cannot execute first .
1
1