recategorized by
2,478 views
1 votes
1 votes

Consider a disk system having $60$ cylinders. Disk requests are received by a disk drive for cylinders $10,22,20,2,40,6$ and $38$, in that order. Assuming the disk head is currently at cylinder $20$, what is the time taken to satisfy all the requests if it takes $2$ milliseconds to move from one cylinder to adjacent one and Shortest Seek Time First (SSTF) algorithm is used?

  1. $240$ milliseconds
  2. $96$ milliseconds
  3. $120$ milliseconds
  4. $112$ milliseconds
recategorized by

3 Answers

1 votes
1 votes

Disk requests with head at 20

2  6 10  20  22  38  40

20--->22---->10--->6---->2------>38------>40 total head movements (2+12+4+4+36+2) =60

 

time= 60x2= 120ms option 3 is the ans

0 votes
0 votes
Head movement : 20_ 22_ 10_ 6_ 2_38_ 40 Toatal head mivements : ( 2+12+4+4+36+2 =60) 1 cylinder take 2 ms Then 60 cylinders take 60*2=120ms.

Hence option C is correct✅
Answer:

Related questions

0 votes
0 votes
2 answers
4
go_editor asked Nov 20, 2020
1,006 views
Match $\text{List I}$ with $\text{List II}$$\begin{array}{llll} & \text{List I} & & \text{List II} \\ (A) &\text{Handshaking} & (I) & \text{I/O interface informs the CPU}...