โ CS Visual Lab ยท Operating Systems
๐ฝ Disk scheduling
๐ก The ideaThe disk head moves across cylinders to serve requests. FCFS serves in order, SSTF picks the nearest, SCAN sweeps to the end like a lift, C-SCAN sweeps one way and jumps back, LOOK turns at the last request instead of the end.
๐ In real lifeA lift in a building: SCAN goes all the way up, then down, picking people on the way; SSTF always goes to the nearest floor that pressed the button.
๐ฌ Watch it work
Step 1 of 9
Head at 53 ยท moved 0 cylinders so far ยท total for SSTF: 236