...
Question 8103 – Engineering-Mathematics
May 22, 2024
Question 7693 – CPU-Scheduling
May 22, 2024
Question 8103 – Engineering-Mathematics
May 22, 2024
Question 7693 – CPU-Scheduling
May 22, 2024

GATE 2009

Question 31

Consider a disk system with 100 cylinders. The requests to access the cylinders occur in 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 1ms to move from one cylinder to adjacent one and shortest seek time first policy is used?

A
95 ms
B
119 ms
C
233 ms
D
276 ms
Question 31 Explanation: 
The given sequence is
4, 34, 10,7, 19, 73, 2, 15, 6, 20
Arrange the sequence in order
2, 4, 6, 10, 15, 19, 20, 34, 73

⇒ 1 ms to move from one cylinder to adjacent one
⇒ (16*1)+(14*1)+(1*1)+(4*1)+(5*1)+(3*1)+(1*1)+(2*1)+(2*1)+(71*1)
⇒ 16+14+1+4+5+3+1+2+2+71
⇒ 119 ms
Correct Answer: B
Question 31 Explanation: 
The given sequence is
4, 34, 10,7, 19, 73, 2, 15, 6, 20
Arrange the sequence in order
2, 4, 6, 10, 15, 19, 20, 34, 73

⇒ 1 ms to move from one cylinder to adjacent one
⇒ (16*1)+(14*1)+(1*1)+(4*1)+(5*1)+(3*1)+(1*1)+(2*1)+(2*1)+(71*1)
⇒ 16+14+1+4+5+3+1+2+2+71
⇒ 119 ms

Leave a Reply

Your email address will not be published. Required fields are marked *