Scheduling Intro Qs Flashcards
Chapter 7 of Operating Systems: Three Easy Pieces
How does FIFO scheduling determine which process gets the CPU next?
in the order they arrive
What is the main disadvantage of FIFO scheduling?
the convoy effect, a long-running process can block shorter processes behind it
How does SJF scheduling decide which process to execute next?
selects shortest estimated runtime or burst time
In what type of environment is SJF not ideal?
answer and then reason
where processes are unpredictable since it relies on knowing or estimating job lengths in advance
What is the key difference between SJF and STCF?
Preemption. SJF isn’t preemptive while STCF is. STCF can interrupt a running process if a new process with a shorter remaining time arrives
How does Round Robin scheduling work?
positive and negative
Assigns each process a time quanta and cycles through the ready queue. If a process doesn’t finish within its time quanta, it is preempted and moved to the back of the queue
What is the key parameter in Round Robin scheduling?
answer and then why
time quanta, determines how long each process can run before being preempted