debai

Question 1: Average completing time of all processes?

rr.jpg

P1 = 20 ms

P2 = 36 – 1 = 35 ms

P3 = 28 – 3 = 25 ms

P4 = 17 – 4 = 13 ms

P5 = 10 – 2 = 8 ms

=> AVG = (20+35+25+13+8)/5 = 20,2 ms

Question 2: Average waiting time of this?

P1 = 20 – 7 = 13 ms

P2 = 36 – 1  – 16= 19 ms

P3 = 28 – 3 – 8 = 17 ms

P4 = 17 – 4 – 3 = 10 ms

P5 = 10 -2 – 2 = 6 ms

=> AVG = (13+19+17+10+6)/5 = 13 ms

VÕ TÌNH THƯƠNG

votinhthuong9@gmail.com

Advertisements