An application loads libraries at startup. Loading each library requires exactly one disk access. The seek time of the disk to a random location is given as ms. Rotational speed of disk is rpm. If all libraries are loaded from random locations on the disk, how long does it take to load all libraries? (The time to transfer data from the disk block once the head has been positioned at the start of the block may be neglected.)
View worked solution
Answer: B
To find the total time required to load all libraries, we first calculate the average disk access time for a single random library access.
The total disk access time for one request is given by:
Let's calculate each component:
- Seek Time: Given as .
- Average Rotational Latency:
The rotational speed of the disk is (rotations per minute).
Time for one full rotation = .
The average rotational latency is half of the time for one full rotation: - Transfer Time: Neglected as per the problem statement ().
Substituting these values into the access time formula:
Since the libraries are loaded from random locations, each library requires an independent random disk access. Therefore, the total time to load all libraries is:
Thus, the correct option is B.
Free practice · Your answers on this page are not saved.
