in Operating System
1,130 views
0 votes
0 votes
Which of the Algorithm gives long average waiting time?
(a) SJF (b) Round Robbin (c) FCFS (d) All of the above
in Operating System
1.1k views

3 Comments

Round robbin, due to every Process is rotating without completing.
0
0

Cannot be answered without more information,

For RR 

  • Low average waiting time when job lengths vary widely 
  • Poor average waiting time when jobs have similar lengths. Average waiting time is even worse than FCFS.
0
0

2 Answers

1 vote
1 vote

Poor framing of ques ...where did u get ? No scenario is mentioned so difficult to give the correct answer

FCFS can have convoy effect.

SJF has minimum waiting time

RR have better when job lengths vary widely else they can have worse than FCFS when jobs length is same(source: Gavlin)

0 votes
0 votes
process number burst_time
1 2
2 4
3 6
4 2

we can check all the option by taking a randomly example if any option holds true in general then it will hold for all the example.(arrival time=0)

(1) for SJF  AWT=3.5

(2) for FCFS AWT=5

(3) for ROUND ROBIN=5.5(tq=2 unit)

so for round robin AWT is large.

 

Related questions