Consider the following five disk access requests of the form (request id, cylinder number) that are present in the disk scheduler queue at a given time.
Assume the head is positioned at cylinder . The scheduler follows Shortest Seek Time First scheduling to service the requests.
Which one of the following statements is FALSE?
View worked solution
Answer: B
To find the order of service under the Shortest Seek Time First (SSTF) scheduling algorithm, we calculate the absolute distance from the current head position to all pending requests and choose the closest one at each step.
The initial head position is . The pending requests are , , , , and .
- From 100: Distances are , , , , . The closest is .
Head moves to . - From 110: Distances are , , , . The closest is .
Head moves to . - From 115: Distances are , , . The closest is .
Head moves to . - From 85: Distances are , . The closest is .
Head moves to . - From 30: Only remains.
Head moves to .
The servicing sequence is: .
Let's evaluate the options:
- A: is serviced before . (True, is 2nd and is 5th)
- B: is serviced after , but before . (False, is serviced before and after )
- C: The head reverses direction between servicing and . (True, head moves left from , then reverses right to )
- D: is serviced before . (True, is 1st and is 5th)
Free practice · Your answers on this page are not saved.
