Sunday, 17 June 2012

||| VuHelp4U ||| Cs604 !st question Ans .....................................................

 

Process

Max Need

current Usage

P3

8

3

P4

5

1

P5

8

2

Available=4

 

 

 

 

 1st we determine the Need   for each process.

Max need = Need +Allocated

Need  = Max Need – Allocated

 

 

 

Process

Max Need

Current usage

Need = Max Need - current usage

p3

8

3

5

 

p4

5

1

4

 

p5

8

2

6

 

 

 

 

Now our table will become such as

 

 

Process

Current usage

             Need

Available

P3

3

5

 

P4

1

4

 

P5

2

6

 

 


In 1ST ITERATION

 The need of process P4 is

 

         (Need P4) 4 ≤   4 (Available)

 





 

Process

Current usage

          Need

                                                                         Available

P3

3

5

5

P4

1

4

 

P5

2

6

 

 

 

Safe sequence <P4>







In 2nd iteration

 

(Need of P3) 5 ≤ 5(Available)






Process

Current usage

                        Need

                       Available

P3

3

5

5

P4

1

4

8

P5

2

6

 

 






Safe sequence <P4,P3>






In 3rd Iteration

 

(Need of p5) 6 ≤ 8(Available)

 



 

Process

Current usage

                          Need

                       Available

P3

3

5

5

P4

1

4

8

P5

2

6

10

 

 

Safe sequence <P4, P3, P5>   Required Ans. 





--
Hamesha apnay Rab say pur umeed rehna 

Q k " is poori kinaat main jitni jaldi Rab Raazi hota
hai " itni jaldi koi Raazi nahi hota .






 


 


--
To post to this group, send email to vuhelp_pk@googlegroups.com
To unsubscribe from this group, send email to vuhelp_pk+unsubscribe@googlegroups.com
 
 
Group Rules Vuhelp4u
Sharing of Video songs links, movies links, dramas links are not allowed in study group. Only Islamic and general information Video links allowed.
SPAM, Advertisement, and Adult messages are NOT allowed and that member will be behaved strictly.
http://groups.google.com/group/vuhelp_pk?hl=en_US

No comments:

Post a Comment