A Quick Abstract:
The disk arm moves in one direction (e.g., from the outermost to the innermost track).
Services requests in the direction of movement.
When reaching the end, reverses direction.
Efficient for systems with high request density.
Reduces the likelihood of starvation.
May lead to increased seek times for requests at the end tracks.
Similar to SCAN but only services requests in one direction.
When reaching the end, the arm "wraps around" to the beginning.
Reduces the impact of seeking from the last track to the first track.
Provides a more uniform wait time for requests.
May still result in increased seek times for requests near the end tracks.
Similar to C-SCAN but does not service requests at the empty area during the return sweep.
The arm moves to the last request and then reverses direction.
More efficient in terms of seek time compared to C-SCAN.
Reduces the potential wait time for requests near the end tracks.
May still lead to increased seek times for certain requests.
Consider disk requests for sectors 30, 25, 35, 20, and 40, and the disk head initially positioned at sector 30.
Request sequence = {176, 79, 34, 60, 92, 11, 41, 114}
Initial head position = 50
Direction = left (We are moving from right to left)
Total number of seek operations = 226
Seek Sequence is
41,34,11,0,60,79,92,114,176
Request sequence = {176, 79, 34, 60, 92, 11, 41, 114}
Initial head position = 50
Direction = right(We are moving from left to right)
Initial position of head: 50
Total number of seek operations = 389
Seek Sequence: 60, 79, 92, 114, 176, 199, 0, 11, 34, 41
Request sequence = {176, 79, 34, 60, 92, 11, 41, 114}
Initial head position = 50
Direction = right (Moving from left to right)
Initial position of head: 50
Total number of seek operations = 321
Seek Sequence is 60, 79 , 92 , 114 , 176, 11 , 34, 41
SCAN, C-SCAN, and C-LOOK are disk scheduling algorithms designed to optimize seek times and enhance overall disk performance. Each algorithm has its strengths and weaknesses, and the choice depends on the specific characteristics of the system and the workload.
Notes From The Slides:
SCAN
SCAN (Cont.)
C-SCAN
C-SCAN (Cont.)
C-LOOK
C-LOOK (Cont.)
SCAN