chapter 9 - uniprocessor scheduling Flashcards
What is the goal of scheduling?
execute processes in a way to meet system objectives like response time, throughput, and processor efficiency
what are the types of scheduling?
long-term, medium-term, short-term
what is long-term scheduling?
determines which programs to admit to the system (to the ready queue). controls the degree of multiprogramming
what are the 2 decisions of long-term scheduling?
- whether to admit a new process to the system
- which process to admit
what is medium-term scheduling?
once processes are admitted, the degree of multiprogramming can be further managed by this scheduler.
blocked processes can be swapped out of memory to make room for other processes in order to increase CPU utilization
processes can be activated when CPU is underutilized
what is short-term scheduling?
determines which process is going to run next.
what is another name for short-term scheduling?
the dispatcher
what events is the dispatcher invoked on that may lead to choosing another process for execution?
clock interrupts
i/o interrupts
os calls and traps
signals
what is the short-term scheduling criteria?
user oriented, performance related
user oriented, other
system oriented, performance related
system oriented, other
what is user-oriented criteria (short-term scheduling)?
things the user sees
what is system-oriented criteria (short-term scheduling)?
system concerns
what is performance-related criteria (short-term scheduling)?
quantitative
what is user oriented, performance related criteria?
turnaround time - time between submission and completion
response time - time between request and response
deadlines - process completion deadlines
what is user oriented, other (not performance related) criteria?
predictability - execution time not affected by system load
what is system oriented, performance related criteria?
Throughput: number of processes completed per unit of time.
Processor utilization: percent of time processor is busy.