Consider a situation where there are 4 processes executing using RR scheduling. The processes are arriving at different intervals of time.
Now, suppose P3 arrives when P2 is executing(before completing its quantum) then what should be scheduled next P1 or P3?
P1 ------------------- P2-------------------- ??
P3 arrives
When this same situation arises in case SRTF scheduling, where Burst time of P3 is < Burst time of P1, then what should be scheduled next(after P2) P1 or P3?