Asked “Least preemptions”
Constraints “Time quanta is less than CPU BT of all processes”
Assumption “There was no process using CPU hence initial preemption is ignored”
Best Case, We will need only 2 passes of all the processes as time quanta is less than all of them.
1st Pass : P1 || CS || P2 || CS ||…. || Pn ie n-1 Context Switches
2nd Pass : || CS || P1 || CS || P2 || CS ||….. || Pn ie n Context Switches
n+n-1 = 2n-1.
This is the rough idea, IDK how to do formal proofs.