The Gateway to Computer Science Excellence
+21 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 by Veteran (52.2k points)
edited by | 2.9k views
what is Farthest cylinder next algorithm

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

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.

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

6 Answers

+27 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$

by Boss (41.9k points)
edited by
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??
How to decide between nearest cylinder and elevator algo.
Option B is like SSTF ...

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 ? 

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)

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

B) is not always the best EX:


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 



Thank you @Vicky rix ji.

Scan is called elevator algorithm ...

For more reference go to this question.

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

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

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. 

+10 votes
Option B

Nearest cylinder next but it can lead to starvation
by Boss (14.4k points)
+7 votes
Nearest cylinder next . in this many pages can be accessed in less time  . So throughput will be high .
by Loyal (7.8k points)
+2 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 (41 points)
0 votes
A- Like always choose more distance from itself , so it can't be answer

B- its SSTF

C- its FCFS


> FCFS throughput is less then SSTF so it's also not answer

> now the fight b//w SSTF and SCAN

SSTF always serve nearest cylinder first , so necessary movements gets reduced . and in case of SCAN it goes to one end and come back ,which takes more time to complete task , so SSTF throughput is best .
by Junior (977 points)
–4 votes

Both the Nearest Cylinder and Elevator are high on throughput.But I will go with ELEVATOR.


Nearest Cylinder Next algo will have a overhead of computing the nearest cylinders of the queue.
by Active (3k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,309 answers
105,022 users