Timed3

Calculate how many context switches take place before process2 completes with a Round-Robin scheduling algorithm with a CPU burst length of 4ms.

A context switch is when the algorithm switches which process it's giving resources to. So for example:
  • P1 executes for 4ms
  • P2 executes for 4ms
  • P1 executes for 3ms and completes.
  • P2 executes for 2ms and completes.
In this example, there are 3 context switches before P2 completes.


You must be logged in order to submit an answer.


Challenge by ynori7.