Compute the following table using preemptive round robin: Time quantum = 3ms ID: P1, P2,…
- User
Compute the following table using preemptive round robin: Time quantum = 3ms ID: P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13 AT: 17, 9, 5, 0, 13, 12, 5, 14, 8, 16, 15, 14, 3 BT: 7, 10, 3, 5, 12, 8, 9, 7, 5, 7, 8, 8, 10
Find the total CT and Ave. CT
- Assistant
Arrival Time (AT) Burst Time (BT) Remaining Time (RT) P1 17 7 7 P2 9 10 10 P3 5 3 3 P4 0 5 5 P5 13 12 12 P6 12 8 8 P7 5 9 9 P8 14 7 7 P9 8 5 5 P10 16 7 7 P11 15 8 8 P12 14 8 8 P13 3 10 10
P4 starts at time 0 as it has the earliest arrival time. At time 3, P3 arrives and is added to the queue. At time 5, P7 arrives and is added to the queue. At time 8, P9 arrives and is added to the queue. At time 9, P2 arrives and is added to the queue. At time 10, P1 arrives and is added to the queue. At time 12, P6 arrives and is added to the queue. At time 13, P5 arrives and is added to the queue. At time 14, P8 and P12 arrive and are added to the queue. At time 15, P11 arrives and is added to the queue. At time 16, P10 arrives and is added to the queue. At time 17, P13 arrives and is added to the queue.