All simulations
Operating systems
·
Process scheduling
CPU Scheduling
Race four schedulers on the same jobs and compare waiting times.
+
−
Ready
0
Time
0/3
Strategies done
Running now
CPU idle
Ready queue (P3·1 = 1 unit left)
Job switch
Skip tour
Next
Quiz · CPU Scheduling
Question 1 of 6
Choose one
Textbook set under FCFS: P2 arrives at 2 and finishes at 11 with a burst of 4. What is its waiting time?
4
5
7
9
Choose one
Which non-preemptive strategy gives the lowest average waiting time when all jobs are ready together?
FCFS
SJF
Round Robin
It depends only on the arrival order
Choose one
In the Convoy set, why is FCFS’s average waiting time so high?
Short jobs wait behind the 10-unit job
The CPU is idle for a long time
FCFS preempts too often
The quantum is too small
Select all that apply
Which strategies can take the CPU away from a running process?
SRTF
Round Robin
FCFS
SJF (non-preemptive)
Choose one
What happens to Round Robin as the time quantum grows very large?
It behaves like FCFS
It behaves like SJF
It becomes preemptive priority scheduling
Average waiting time always drops to zero
Choose one
Textbook set under SJF: P1 (burst 7) is running when P3 (burst 1) arrives at time 4. What happens?
P3 takes the CPU at once
P1 and P3 share the CPU in turns
P1 finishes first; P3 runs next at 7
P3 waits until all earlier arrivals finish
To improve
Your answers