421 views
1 votes
1 votes

1 Answer

0 votes
0 votes

Both FCFS and SRTF gives the same Gantt chart.

A B C D E

0                        3                        7                            10                         15                      22  

Avg Waiting time = (0 + (3-3) + (7-7) + (10-9) + (15-12))/5 = 4/5  = 0.8 msec.

The Gantt chart for RR:

A B   C D E B D E E

0             3          6   7            10            13          16           17            19          22          23

Avg Waiting time = (0 + [(3-3)+(16-6)] + (7-7) + [(10-9)+(17-13)] + [(13-12)+(19-16)] )/5 = (10+5+4)/5 = 19/5 = 3.8 msec.

Hence option D.

Related questions

498
views
1 answers
0 votes
Sanjay Sharma asked Apr 8, 2017
498 views
is it possible for FCFS to give lesser avg waiting time than SJF in any case if yes than explain with an numerical example
1.6k
views
1 answers
0 votes
aritrik7849 asked Nov 24, 2023
1,553 views
Find seek time using FCFS,SSTF, SCAN.C-SCAN, LOOK for the following string98, 183, 37, 122, 14, 124, 65, 67Assume that request queue (0-199).and Head pointer 53