Scheduling Flashcards
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
A scheduler wants to minimize _________ time, ________ time, and _______ time
turnaround, waiting, response
What does turnaround time measure?
amount of time to execute a process from submission to termination
What are the 7 scheduling algorithms?
- First come first served
- Shortest Job First
- Shortest Remaining Time First
- Priority
- Round Robin
- Multilevel Queue Scheduling
- Multilevel Feedback Queue Scheduling
In ___________________ scheduling, the processes are executed in arriving order
First come first serve
The average waiting time for the FCFS scheduler is very ________
dynamic
What does the convoy effect describe in FCFS scheduling?
short processes wait for on long process to get of CPU
The _______ _____ leads to low CPU and device utilization
convoy effect
SJF schedules the process with the _______ CPU burst time
shortest
What does SJF always optimize?
average waiting time for a set of processes
The ______ of a CPU burst is available for _____-_____ schedulers, but not ______-_____ schedulers
length, long-term, short-term
In ________ SJF, it predicts the next burst based on previous bursts
approximate