163k views
3 votes
Suppose that a disk drive has 5,000 cylinders, numbered 0 to 4,999. The drive is currently serving a request at cylinder 2,050, and the previous request was at cylinder 2,215. The queue of pending requests, in FIFO order, is: 4040, 606, 3795, 374, 3036, 1065, 434, 2567, 2950, 3540 Starting from the current head position, what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests for each of the following disk-scheduling algorithms? a. FCFS b. SSTF c. SCAN

1 Answer

1 vote

Answer:

a. 18102

b. 5656

c. 6090

Step-by-step explanation:

Pleaae kindly check attachment for the detailed and step by step solution of the given problem.

Suppose that a disk drive has 5,000 cylinders, numbered 0 to 4,999. The drive is currently-example-1
Suppose that a disk drive has 5,000 cylinders, numbered 0 to 4,999. The drive is currently-example-2
User Dmitry Alexandrov
by
7.1k points