In case of Round robin algorithm with time quantum = 2s, and process P1 starting at t=0 and have processes P2, P3 in queue
If a process P4 arrives at t =2s, but at the same time t=2s, P1 which was executing is preempted since the quantum expires.
Which process will be put ahead whether P1 ahead of P4 or P4 ahead of P1 ?
I mean the waiting queue will have the order P2, P3, P4, P1 or P2, P3, P1, P4 because there is race between P4 and P1.