edited by
284 views
0 votes
0 votes

 

Consider a disk system with cylinders. The request to access the cylinders occurs in the following sequence:
\[
4,34,10,7,19,73,2,15,6,20
\]
Assuming that the head is currently at cylinder $50$, what is the time taken to satisfy all requests if it takes $1 \mathrm{~ms}$ to move from one cylinder to adjacent one and shortest seek time first policy is used?

  1. $119 \mathrm{~ms}$
  2. $120 \mathrm{~ms}$
  3. $142 \mathrm{~ms}$
  4. $146 \mathrm{~ms}$
edited by

1 Answer

0 votes
0 votes
In shortest seek time first, the access request for cylinder closest to current position is served first.

Given, head is currently at cylinder 50, the sequence of requests served will be –
50 → 34 → 20 → 19 → 15 → 10 → 7 → 6 → 4 → 2 → 73

Total head movement = 119

Time for 1 move = 1ms

Total seek time = 119*1ms = 119ms

Related questions

0 votes
0 votes
0 answers
3
admin asked Jul 28, 2023
182 views
There are $M$ points on one straight line $A B$ and $n$ points on another straight line $A C$ none of them being $A$. How many triangles can be formed with these points a...