At 31:42, Round Robin Scheduling with time slice 2, at time interval 2: Process P1 completed it's time slice and Process P2 arrived. So during the next time slice first P2 should be executed and then P1 should be executed right ? Why is P1 executed during the next time slice?
At 31:42, Round Robin Scheduling with time slice 2, at time interval 2:
Process P1 completed it's time slice and
Process P2 arrived.
So during the next time slice first P2 should be executed and then P1 should be executed right ? Why is P1 executed during the next time slice?
you are right that it is unclear. I think we assume P2 arrives at time 2+, ie the kernel doesn't see it when it is executing its interrupt.
It might be a mistake
At 21:10 p3 waiting time should be 3, and the average waiting time will be 2.75. But all right, well explained, thanks!
No u r wrong...it will be 4, as 8-4 is 4 coz p1 ended at 7 then p4 came and it ended at 8 ...so 8-4=4
the context switches in this (35:33) example should be 5? what am i doing wrong?
32:43 context switch should be 6 as it changes total of 6
yes that is what i was thinking as well.
hmm right..