Final answer:
The total distance that the disk arm moves to satisfy all the pending requests depends on the disk scheduling algorithm used.
For this particular scenario, the total distances for the SSTF, Scan, Look, and C-Scan algorithms are 3078, 2883, 2848, and 2836 cylinders, respectively.
Step-by-step explanation:
The total distance that the disk arm moves to satisfy all the pending requests depends on the disk scheduling algorithm used.
Let's calculate the total distance for each algorithm:
(a) SSTF:
- Start at cylinder 1050 and move to cylinder 1000 (distance = 50)
- Move to cylinder 1090 (distance = 90)
- Move to cylinder 1200 (distance = 110)
- Move to cylinder 1100 (distance = 100)
- Move to cylinder 890 (distance = 210)
- Move to cylinder 900 (distance = 10)
- Move to cylinder 800 (distance = 100)
- Move to cylinder 55 (distance = 745)
- Move to cylinder 56 (distance = 1)
- Move to cylinder 450 (distance = 394)
- Move to cylinder 4 (distance = 446)
- Move to cylinder 37 (distance = 33)
- Move to cylinder 5 (distance = 32)
- Move to cylinder 1050 (distance = 1045)
The total distance for SSTF is 3078 cylinders.
(b) Scan:
- Start at cylinder 1050 and move to the highest numbered cylinder (1249) (distance = 199)
- Move to cylinder 0 (distance = 1249)
- Move to cylinder 4 (distance = 4)
- Move to cylinder 5 (distance = 1)
- Move to cylinder 37 (distance = 32)
- Move to cylinder 55 (distance = 18)
- Move to cylinder 56 (distance = 1)
- Move to cylinder 450 (distance = 394)
- Move to cylinder 800 (distance = 350)
- Move to cylinder 890 (distance = 90)
- Move to cylinder 900 (distance = 10)
- Move to cylinder 1000 (distance = 100)
- Move to cylinder 1090 (distance = 90)
- Move to cylinder 1100 (distance = 10)
- Move to cylinder 1200 (distance = 100)
- Move to cylinder 1050 (distance = 150)
The total distance for Scan is 2883 cylinders.
(c) Look:
- Start at cylinder 1050 and move to the highest numbered cylinder lower than the previous request, which is 900 (distance = 150)
- Move to cylinder 890 (distance = 10)
- Move to cylinder 800 (distance = 90)
- Move to cylinder 55 (distance = 745)
- Move to cylinder 56 (distance = 1)
- Move to cylinder 450 (distance = 394)
- Move to cylinder 4 (distance = 446)
- Move to cylinder 37 (distance = 33)
- Move to cylinder 5 (distance = 32)
- Move to cylinder 1050 (distance = 1045)
The total distance for Look is 2848 cylinders.
(d) C-Scan:
- Start at cylinder 1050 and move to the highest numbered cylinder (1249) (distance = 199)
- Move to cylinder 0 (distance = 1249)
- Move to cylinder 4 (distance = 4)
- Move to cylinder 5 (distance = 1)
- Move to cylinder 37 (distance = 32)
- Move to cylinder 55 (distance = 18)
- Move to cylinder 56 (distance = 1)
- Move to cylinder 450 (distance = 394)
- Move to cylinder 800 (distance = 350)
- Move to cylinder 890 (distance = 90)
- Move to cylinder 900 (distance = 10)
- Move to cylinder 1000 (distance = 100)
- Move to cylinder 1050 (distance = 50)
- Move to cylinder 1200 (distance = 150)
- Move to cylinder 1100 (distance = 100)
- Move to cylinder 1090 (distance = 10)
- Move to cylinder 1050 (distance = 40)
The total distance for C-Scan is 2836 cylinders.