




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























cooperative scheduling let a process run until it blocks on I/O, terminates or voluntarily releases the CPU (system call) Ready Running Blocke d
Ready Running Blocke d
preemptive scheduling follow clock interrupts (ex: 50Hz) to forcibly switch processes (demote the “Running” to “Ready”)
Two kinds of CPU-scheduling algorithms
Scheduling Algorithm Optimization Criteria
A B C D E
Arrival times
Shortest JobFirst (SJF)
SJF^ A^ B^ C^ D^ E^ Mean
≤ ≤
=
=
α α
τ (^) n 1
tn nth
τ (^) n = 1 =α tn + ( 1 −α) τ (^) n.
allows new short jobs to get good service
A B C D E Mean
A B C D E
Arrival times
A B C D E
Arrival times
A B C D E Mean
A B C D E Mean
Turnaround Time Varies With The Time Quantum