Given a disk queue starting from 0 to 199 with requests for tracks: 98, 183,…
2025
Given a disk queue starting from 0 to 199 with requests for tracks: 98, 183, 37, 122, 14, 124, 65, 67. If the disk head starts at track 53 and uses the SCAN algorithm moving toward higher tracks first, what is the total head movement?
- A.
236
- B.
299
- C.
331
- D.
208
Attempted by 22 students.
Show answer & explanation
Correct answer: C
calculate the Total Head Movement using the SCAN algorithm:
Forward: Start at 53, move to the boundary 199. Movement = 199 - 53 = 146.
Backward: From 199, move back to the last request at 14. Movement = 199 - 14 = 185.
Total: 146 + 185 = 331.