5
Preemptive 抢占式 vs. Non-
preemptive
Non-preemptive scheduling:
The running process keeps the CPU until it voluntarily
gives up the CPU
process exits
switches to blocked state
1and 4 only (no 3)
Disadvantage?
Preemptive scheduling:
The running process can be interrupted and must
release the CPU (can be forced to give up CPU)
Preemptive principles?
Running
Terminated
Ready Blocked
1
4
3
评论0
最新资源