Mass Storage Template
2,069 1,212 2,296 2,800 544 1,618 356 1,523 4,956 3,681
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? Record your answers in the table below.
Question 1: Total Distance | Question 2 (a): Total Seek Time | |
a. FCFS | ||
b. SSTF | ||
c. SCAN | ||
d. LOOK | ||
e. C-SCAN | ||
f. C-LOOK |
We can express an equation for the seek time as a function of the seek distance. This equation should be of the form t = x + y, where t is the time in milliseconds and L is the seek distance in cylinders. First, we solve the simultaneous equations t = x+y that result from (t = 1, L =1) and (t =18, L =4999) to obtain
t =0.7561+0.2439.
Using this equation, perform the following calculations:
(Note that you have to calculate the individual distances for each access, apply the formula to them, then add them all up to get the total seek time for each method.) Record your answers in the table above.
Answer: _____________________________________________________