Numerical Solved by Round Robin Scheduling without using Switching

Q4. 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 and waiting time using Round Robin Scheduling Algorithm without Switching.

Ans.

Grant Chart:

P1 P2 P3 P1 P2 P1 P2 P1 P1

0             2              4               6              8             10            12            13             15         17

Turnaround Time

Turnaround Time = Burst Time + Waiting Time

P1=17

P2=13

P3=6

Average Turnaround Time

=(17+13+6)/3

=36/3

=12 ms

Leave a Reply

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

204 Views
%d bloggers like this: