Consider a disk with the tracks numbered from to rotating at rpm. The number of sectors per track is and the time to move the head between two successive tracks is millisecond.
View worked solution
Answer: A
Here is the step-by-step solution for both parts of the question:
Part (A)
We are given:
- Tracks: to
- Initial head position: , moving upwards
- Requests:
- Seek time per track =
Depending on the specific interpretation of the elevator algorithm, we analyze both standard variants:
- LOOK Algorithm (reverses at the last request):
- The head moves from , then reverses and moves .
- Total seek distance = tracks.
- Total seek time = .
- SCAN Algorithm (goes to the boundary):
- The head moves from , then reverses and moves .
- Total seek distance = tracks.
- Total seek time = .
Part (B)
We are given:
- Rotation speed =
- Time for full rotation =
- Sectors per track =
- Transfer time for sector =
To find the worst-case time to complete arbitrary requests starting at track :
- Worst-case distribution: Each of the requests lies on a different track (from track to ).
- Total Seek Time: The head traverses from track to in a single sweep.
- Worst-case Rotational Latency: For each request, the head arrives just after the target sector has passed, requiring a full rotation ().
- Total Transfer Time: Reading sectors:
Free practice · Your answers on this page are not saved.
