798 views

3 Answers

2 votes
2 votes
P.No AT BT CT TAT WT
P1 3 2 6 3 1
P2 2 4 10 8 4
P3 6 3 19 13 10
P4 8 1 15 7 6
P5 4 3 16 12 9
P6 5 4 18 13 9

Procee Queue :

P2 P1 P5 P2 P6 P3 P4 P5 P6 P3

Take Each process from this Queue of process and Schedule Accordingly TQ =2

Gant Chart

  P2 P1 P5 P2 P6 P3 P4 P5 P6 P3

0  2       4          6          8          10        12        14           15       16         18         19   

0 votes
0 votes

the advantage of RR is fair allocation cpu across process ..that means it give preferances to new process always whenever there is no priority or any restriction.

so p4 will get a chance to execute

Related questions

0 votes
0 votes
3 answers
1
0 votes
0 votes
0 answers
3
Prakhar Singh Gaharw asked Oct 21, 2018
442 views
processes 1,2,3,4,5 with burst time as 4,1,8,1,2 and arrival time as 0+ RoundRobin used with TQ=1 what will be arrival time chart for processes 1,2,3,4,5.