If the time quantum for RR is ms, then the absolute value of the difference between the average turnaround times (in ms) of SJF and RR (round off to decimal places is_______
View worked solution
Answer: 5.25:5.26
Since all processes arrive at time , the turnaround time (TAT) for each process is equal to its completion time (CT).
1. Shortest Job First (SJF) Scheduling
Sorting the processes by burst time: , , , .
- Gantt Chart:
| P3 (0-2) | P4 (2-6) | P2 (6-13) | P1 (13-21) | - Turnaround times: , , ,
- Average
2. Round Robin (RR) Scheduling (Quantum = 4 ms)
Processes are scheduled in the order :
- : runs (remaining burst = )
- : runs (remaining burst = )
- : runs (finishes at )
- : runs (finishes at )
- : runs (finishes at )
- : runs (finishes at )
- Turnaround times: , , ,
- Average
3. Absolute Difference
Free practice · Your answers on this page are not saved.
