Ch09 OS9e
Ch09 OS9e
Systems:
Internals
and Chapter 9
Design Uniprocessor
Principles
Scheduling
Ninth Edition
By William Stallings
Types of Scheduling
Medium
Long term Short term
term
scheduling scheduling
scheduling
Non-performance
Performance-related
related
Easily Hard to
Quantitative Qualitative
measured measure
Scheduling Criteria
Characteristics of
Various
Scheduling
Policies
Nonpreemptive Preemptive
Currently running process
may be interrupted and
Once a process is in the moved to ready state by the
running state, it will OS
continue until it terminates Decision to preempt may be
or blocks itself for I/O performed when a new
process arrives, when an
interrupt occurs that places
a blocked process in the
Ready state, or periodically,
based on a clock interrupt
A Comparison
of Scheduling
Policies
Formulas
for Single-
Server
Queues
with Two
Priority
Categories
GCPUk(i - 1)
GCPUk(i) = 2
CPUj(i) GCPUk(i)
Pj(i) = Basej + 2 + 4 x Wk
where
User processes