Scheduling
Scheduling
Scheduling
Textbook Ch5
These slides were compiled from the Applied OSC textbook slides (Silberschatz,
Galvin, and Gagne) and the instructor’s class materials.
Process A Process B
Non-preemptive
P2(17) 20
P3(48) P3(28) P3(8)
P3(68) 37 40 17
P4(24) 57 40 P4(4)
Average wait time = (81+20+94+97)/4 = 73
CSS430 CPU Scheduling 12
Round Robin Scheduling
Typically, higher average turnaround than SJF, but better response.
Performance
q large FCFS
Thread.yield( ) is OS-dependent.
Linux does not care about it.
Thread.resume( )
Scheduling criteria:
Processor affinity
Load balancing