Professional Documents
Culture Documents
EXAMPLE DATA:
Process Arrival Service
Time Time
P1 0 8
P2 1 4
P3 2 9
P4 3 5
FCFS
P1 P2 P3 P4
0 8 12 21 26
Residence Time
at the CPU 1
CPU SCHEDULING SJF
EXAMPLE DATA:
Process Arrival Service
Time Time
P1 0 8
P2 1 4
P3 2 9
P4 3 5
P1 P2 P4 P1 P3
0 1 5 10 17 26
2
CPU SCHEDULING RR
EXAMPLE DATA:
Process Arrival Service Note:
Example violates rules for
Time Time
quantum size since most
P1 0 8 processes don’t finish in one
P2 1 4 quantum.
P3 2 9
P4 3 5
P1 P2 P3 P4 P1 P3 P4 P3
0 4 8 12 16 20 24 25 26