I need help with this. Round robin: a special case as two processed one used up it time quantum and the other arrives at the same time. For example, we has the following processes:
Process P1: + Arrival time: 0 + Burst time: 7 Process P2: + Arrival time: 5 + Burst time: 7 Assuming that time quantum q = 5 and after time quantum ending if a process doesn't complete it is added to at the end of the queue.
My confusion is about at the time 5. At this time, time quantum of P1 expires and P2 also arrives. What should come the queue first?
The arrived process is placed in the ready queue before the existing executing process ( time quantum completed ) in order to minimize the average response time. The time taken for context switching is negligible.