Numerical Solved by Round Robin Scheduling using Switching

Q5. Take three processes that arrive at the same time in the following order and the time quantum is 2ms.

Process                Burst Time

P1                          10

P2                          5

P3                          2

Draw Gantt Chart and calculate average turnaround time using Round Robin Scheduling Algorithm along with Switching.

Ans. Gantt Chart:

P1   P2   P3   P1   P2   P1   P2   P1   P1

0      2       3       5     6        8      9     11      12    14    15     17    18     19    20     22   23  25

Turnaround Time

P1=25

P2=19

P3=18

Average Turnaround Time

=(25+19+18)/3

=52/3

=17.6 ms

Leave a Reply

Your email address will not be published. Required fields are marked *

134 Views
%d bloggers like this: