You are on page 1of 2

Angga Purwanto Aji (116403020001)

Proses P1 P2 P3 P4 P5

Arrival 0 ms 3 ms 5 ms 7 ms 7 ms

Brush 6 ms 4 ms 2 ms 3 ms 1 ms

Non-Preemptive SJF
P1 P3 P2 P5 P4

12 13

16

Waiting time P1 = 0 ms, P2 = 5 ms, P3 = 1 ms, P4 = 6 ms, P5 = 5 ms Average waiting time (0 + 5 + 1 + 6 + 5)/5 = 3,4 ms

Angga Purwanto Aji (116403020001)

Preemptive SJF

P1

P2

P3

P5

P2

P1

P4

10

13

16

Waiting time P1 = 7 ms, P2 = 3 ms, P3 = 0 ms, P4 = 6 ms, P5 = 0 ms Average waiting time (7 + 3 + 0 + 6 + 0)/5 = 3,2 ms

You might also like