Scheduling Flashcards
(88 cards)
What is multiprogramming?
Keeping multiple programs in memory and running them so that CPU use is high
Most _______ will not be busy all the time
programs
_________ algorithms increase CPU use by switching between tasks
scheduling
An I/O-bound process/thread spends more time in ____
I/O
An example of an I/O bound process is …
web server connection handling
An CPU-bound process/thread pends more time in…
CPU
An example of a CPU-bound process is…
scientific computing
A long-term scheduler is also known as a ____ ________
job scheduler
a Long-term scheduler selects which processes should be brought into the ______ ______
ready queue
a Long-term scheduler controls the degree of _________________
multiprogramming
a Long-term scheduler is invoked _________
infrequently
a Long-term scheduler should have a good mix of __________ and ________ jobs in the system
CPU-Bound, I/O-bound
A short-term scheduler is also known as a ____ ________
CPU scheduler
A short-term scheduler selects which process should be executed next and allocates _____ to it
CPU
A short-term scheduler is invoked _________
frequently
A _______-term scheduler swaps processes in and out of ready queue to enhance performance
medium
Non-preemptive scheduling makes it so that once a process is __________ a CPU, it does not _______ unless it has to _____ or it ________
allocated, leave, wait, terminates
Preemptive scheduling makes it so that the __ can force a process from CPU at __________
OS, anytime
An OS will preempt a process when there is another _______ ______ process
higher priority
________ scheduling is harder to implement because data _______ needs to be maintained between processes and _____ data structures
preemptive, consistency, kernel
What does a dispatcher do?
Allocates CPU to a process selected by a scheduler to run
What steps are involved in the dispatcher allocates CPU?
- Switch context
- Switch to user mode
- Jumping to the proper location in the selected process and starting it
________ _______ is the time taken for the dispatcher to stop one process and start another
dispatch latency
A scheduler wants to maximize ___ ____________ and _________
CPU, utilization, throughput