Quantcast
Channel: Active questions tagged operating-system+scheduling - Stack Overflow
Viewing all articles
Browse latest Browse all 209

Breaking a tie in round robin scheduling

$
0
0

I am confused with a basic concept of Round Robin CPU process scheduling, where the short term scheduler adds the process to the ready queue.

If there are 3 process P0, P1 and P2 in the system and a context switch occurs for P1 at 5 seconds and at the same time P2 ARRIVES (i.e. at 5th second). In such a case which process will be inserted first in the ready queue, P1 or P2? The overall average waiting time may not differ in both the cases but the individual waiting time of a process will differ.


Viewing all articles
Browse latest Browse all 209

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>