GATE CSE 2020 Q60: Difference of average turnaround times for SJF and RR (q = 4)
- Operating System
- 2 marks
- NAT
- No negative marking
Question
Consider the following set of processes, assumed to have arrived at time 0. Consider the CPU scheduling algorithms Shortest Job First (SJF) and Round Robin (RR). For RR, assume that the processes are scheduled in the order .
| Processes | ||||
|---|---|---|---|---|
| Burst time (in ms) | 8 | 7 | 2 | 4 |
If the time quantum for RR is 4 ms, then the absolute value of the difference between the average turnaround times (in ms) of SJF and RR (round off to 2 decimal places) is _______.
Try it: numerical answer: type the value
Show answer and explanation
Answer: 5.25 (official GATE 2020 final answer key)
Concept used: With all arrivals at 0, turnaround time equals completion time; draw a Gantt chart for each policy.
First step: SJF runs finishing at 2, 6, 13, 21. For RR with quantum 4, the slices are .
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2020 CS question paper and final answer key, organised by IIT Delhi. Question paper · Answer key
More Operating System PYQs
- 2026 Session 1 · Q29False statements about deadlocks
- 2026 Session 1 · Q35Minimum resource instances for deadlock freedom (5 processes, max 2)
- 2026 Session 1 · Q59Disk transfer time for random sectors on tracks 5, 12, 7
- 2026 Session 1 · Q63Number of printf calls with fork, continue and break
- 2026 Session 1 · Q64Average FCFS waiting time for alternating A and C processes
- 2026 Session 2 · Q23CPU scheduling algorithm that cannot be preemptive