With the given ready-order rule and A first, the CPU timeline in milliseconds is
A performs input-output during and ; B does so during and . In particular, B becoming ready at time 7 does not interrupt A's ongoing nonpreemptive burst. The completion times are and , giving
There are 15 ms of useful CPU execution and 2 ms of idle time on this particular timeline.
Figure 1.
CPU timelines and I/O waits for the two scheduling policies
. Both processes arrive at zero. Readiness determines queue order; A wins initial ties. The displayed completion times give mean turnarounds 16.5 ms without preemption and 14 ms with a two-millisecond quantum. Details.

Articles by others on the same topic (0)

There are currently no matching articles.