The SCAN algorithm moves the disk head in one direction servicing requests until it reaches the end, then reverses direction. What determines the initial direction of the disk head movement?
Think about how the algorithm minimizes seek time by choosing the nearest request direction.
The SCAN algorithm chooses the direction based on the closest pending request to minimize seek time, moving the head towards that direction first before reversing.
Given a disk with 200 tracks (0-199), the disk head is currently at track 50, and the pending requests are at tracks 20, 90, 150, and 180. If the head moves towards the higher track numbers first, what is the total head movement (in tracks) to service all requests using the SCAN algorithm?
Remember the head moves up to the highest request or end, then reverses to service remaining requests.
The head moves from 50 to 180 (130 tracks), then reverses to 20 (160 tracks), totaling 290 tracks.
Which of the following statements correctly describes a key difference between the SCAN and LOOK disk scheduling algorithms?
Consider how far the head travels in each algorithm relative to pending requests.
SCAN moves the head all the way to the disk's end before reversing, even if no requests exist there. LOOK moves only as far as the last request in the current direction before reversing.
Starvation happens when some requests wait indefinitely. Why does the SCAN algorithm reduce starvation compared to the Shortest Seek Time First (SSTF) algorithm?
Think about how SCAN moves the head systematically across the disk.
SCAN moves the head in one direction servicing all requests along the way, so no request is skipped indefinitely, reducing starvation compared to SSTF which can keep picking closer requests and ignore far ones.
Consider a disk with tracks numbered 0 to 199. The disk head is at track 100. Pending requests are at tracks 95, 180, 34, 119, and 11. The SCAN algorithm moves towards the lower track numbers first. What is the order in which the requests will be serviced?
Remember SCAN moves in one direction servicing requests, then reverses.
The head moves down servicing 95, 34, 11, then reverses and moves up servicing 119, 180.