Imagine a disk head moving over tracks numbered 0 to 199. The head is currently at track 50 and moving towards higher track numbers. The pending requests are at tracks 55, 58, 39, 18, and 90.
Which sequence of servicing requests correctly represents the SCAN algorithm's order?
Think of the disk head moving in one direction servicing requests until it reaches the end, then reversing.
SCAN moves the head towards the end (track 199), servicing requests on the way (55, 58, 90), then reverses direction to service remaining requests (39, 18).
You are designing a disk scheduling module for a system with frequent requests clustered near the middle tracks. Which algorithm between SCAN and LOOK is better to reduce unnecessary head movement and why?
Consider how far the head moves in each algorithm.
LOOK moves the head only up to the furthest request in each direction, reducing unnecessary movement compared to SCAN, which always goes to the disk ends.
A disk scheduling system using SCAN is experiencing high request volume with requests spread across all tracks. What is a key architectural change to maintain low latency and throughput?
Think about dividing work to handle many requests efficiently.
Partitioning requests by track ranges allows parallel scheduling and reduces head movement, improving latency and throughput under high load.
In a real-time system requiring predictable maximum wait times, which disk scheduling algorithm is preferable and why?
Consider which algorithm guarantees a maximum travel distance.
SCAN always moves to the disk ends, so the maximum wait time is predictable. LOOK may stop early, making max wait time less predictable.
A disk has 200 tracks (0-199). Requests arrive uniformly at random. The disk head is currently at track 100. Using LOOK scheduling, estimate the average seek distance per request assuming a large number of requests.
Think about the average distance between random points on a line segment.
With uniform random requests, the average distance between requests is about half the disk size. LOOK moves only between the furthest requests, so average seek distance is about 50 tracks.
