in Operating System edited by
11,098 views
29 votes
29 votes

Which of the following disk scheduling strategies is likely to give the best throughput?

  1. Farthest cylinder next

  2. Nearest cylinder next

  3. First come first served

  4. Elevator algorithm

in Operating System edited by
11.1k views

4 Comments

what is Farthest cylinder next algorithm
1
1

Option (B) and (D) both are acceptable. For more details please check comment of @Vicky rix ji.

1
1
edited by
As throughput is asked can it be interpreted as at any point of time during disk scheduling which Algo gives max request processing per second. Which implies minimum head movements.
0
0

@tusharp It should be minimum head movements not maximum as overall seek latency is minimum when head movements are minimum thus maximum throughput.

0
0

6 Answers

42 votes
42 votes
Best answer
  1. Farthest cylinder next $\rightarrow$ This might be candidate for worst algorithm . This is false.
  2. Nearest cylinder next $\rightarrow$ This is output.
  3. First come first served $\rightarrow$ This will not give best throughput. It is random .
  4. Elevator algorithm $\rightarrow$ This is good but issue is that once direction is fixed we don't come back, until we go all the other way. So it does not give best throughput.

Correct Answer: $B$

edited by

14 Comments

I am confused between nearest cylinder next or elevator?? Because both gives good throughput. what should be the answer?? and why?? why it shouldnt be elevator since it doesnt even have starvation problem??
9
9
How to decide between nearest cylinder and elevator algo.
2
2
Option B is like SSTF ...
2
2

Hi @sushmitavaishali jhalani and Puja Mishra ji,

First of all thanks for raising good point. But could you please provide some counter example where Elevator algorithm will perform better then Nearest cylinder next ? 

0
0
In nearest cylinder next, we cant fix the direction in which go next

but in Elevator , first we fix the diection then go only that direction and then come back to opposite direction

like if we have 10,50 request and head is on 20

then nearest cylinder next , 20->10->50   total seek time 10+40=50

elevator 20->50->10  total seek time=30+40=70 ( direction is fix toward 50)
5
5
edited by

As long as the block request string is given, we cannot decide between B) and D)

B) is not always the best EX:

19
19

throughput put depends on the number of requests served per second  as we always go for the shortest reach SSTF Does this best as it tries to serve the maximum number of processes in less time 

@https://gateoverflow.in/user/sushmita

5
5

Thank you @Vicky rix ji.

2
2
Scan is called elevator algorithm ...
4
4

For more reference go to this question.

https://gateoverflow.in/8227/gate2015-1-30

How SCAN Algo hear move one side head and then return.

0
0
It should be Elevator algorithm since it provides more uniform waiting time than the SSTF or nearest cylinder next algorithm.
5
5

Both B AND D are correct. 

D is also correct(see @Vicky rix comment ) and as it's a GATE 1999 question multiple options are possible as answers. 

2
2

I dont think there can be 2 correct answers for this as it is asking for the BEST, how can two strategies be best simultaneously. What to write if it appears in the exam now…. Other sites like GFG have also given B

0
0

 see question is asking- likely to give the best throughput hence Nearest cylinder next is better option for exam

2
2
12 votes
12 votes
Option B

Nearest cylinder next but it can lead to starvation
11 votes
11 votes
Nearest cylinder next . in this many pages can be accessed in less time  . So throughput will be high .
5 votes
5 votes

The only catch in the question is that they are asking for the most likely to give the best throughput.

Even if for some cases SCAN can have better results but the most likely to result the best throughput is Nearest cylinder Algo ;)

by
Answer:

Related questions