Multiple choice

An OS uses elevator algorithm to schedule the disk-arm. I/O requests are currently pending for blocks on tracks 1, 15, 20, 35, 40, and 45. The disk arm is currently at track 19 and moving upwards. In what order will these requests be handled?

  1. 20, 35, 40, 45,15,1

  2. 15, 1, 20, 35, 40, 45

  3. 15, 1, 40, 45, 35, 20

  4. 1,15, 20, 35, 40, 45

  5. 45, 40, 35, 20,15,1

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the correct option.