7 - Scheduling Introduction Flashcards
October 7 quiz
What are scheduling policies also called?
disciplines
What is the workload?
the processes running in the system
What are jobs?
processes
What is the purpose of a scheduling metric?
lets us compare different scheduling policies
What is turnaround time?
type of metric
a scheduling and performance metric
What is the formula for turnaround time?
the time which the job completes minus the time which the job arrived in the system;
T turnaround = T completion - T arrival
What is another scheduling metric that is at odds with performance?
fairness
What is the most basic algorithm?
First-In-First-Out or First Come, First Serve
If all the jobs run for the same amount of time and arrive at the same time, which is the optimal algorithm?
FIFO, FCFS
If all the jobs run for different amount of time and arrive at the same time, which is the optimal algorithm?
Shortest Job First, SJF
What is the convoy effect?
A number of relatively-short potential consumers of a resource get queued behind a heavyweight consumer
Which algorithm is considered optimal?
theoretically
Shortest Job First
If all the jobs run for different amounts of time, arrive at different times, and don’t need to run to completion at once, which is the optimal algorithm?
Shortest Time-to-Completion First, STCF also known as Preemptive Shortest Job First, PSJF
How does Shortest Job First function?
It runs the shortest job first, then the next shortest, and so on.
Is SJF preemptive?
No, SJF is non-preemptive.
Using which algorithm can the scheduler preempt a job and run another job?
Shortest Time-to-Completion, STCF