Final answer:
The total seek distance for FCFS is 149, for SSTF is 87, and for SCAN is 202.
Step-by-step explanation:
The correct answer is option C
In FCFS (First-Come, First-Served), the total seek distance is calculated by summing the absolute differences between consecutive cylinders in the request queue. Following this algorithm, the total seek distance for the given requests is 149.
In SSTF (Shortest Seek Time First), the disk head always moves to the closest cylinder with pending requests. In this case, the total seek distance would be:
- From 46 to 45 (1 distance)
- From 45 to 50 (5 distances)
- From 50 to 49 (1 distance)
- From 49 to 69 (20 distances)
- From 69 to 18 (51 distances)
- From 18 to 9 (9 distances)
The total seek distance for SSTF is 87.
In SCAN, the disk head moves in one direction until it reaches the last cylinder, and then reverses direction. The total seek distance would be:
- From 46 to 99 (53 distances)
- From 99 to 0 (99 distances)
- From 0 to 9 (9 distances)
- From 9 to 18 (9 distances)
- From 18 to 45 (27 distances)
- From 45 to 49 (4 distances)
- From 49 to 50 (1 distance)
The total seek distance for SCAN is 202.