.
period of P1 is shorter than that of P2. In this case, P1 starts first and completes its CPU burst at time 20, thereby meeting its first deadline. P2 starts at this point and runs until time 50. At this time, it is preempted by P1, although it still has 5 milliseconds remaining in its CPU burst. P1