Consider three processes (process id 0, 1, 2, respectively) with compute time bursts 2, 4, and 8 time units. All processes arrive at time zero. Consider the longest remaining time first (LRTF) scheduling algorithm. In LRTF ties are broken by giving priority to the process with the lowerst process id. The average turn around time is
Process id | Arrival Time | CPU burst |
P0 P1 P2 |
0 0 0 |
2 4 8 |
P0 | P1 | P2 | P2 | P2 | P2 | P2 | P1 | P2 | P1 | P2 | P0 | P1 | P2 |