Skip to content
Official PYQ · 2024

GATE CS 2024 Set 2 Q43 — I/O Scheduling

Explain with AI
Consider a disk with the following specifications: rotation speed of  60006000 RPM, average seek time of 55 milliseconds, 500500 sectors/track, 512512-byte sectors. A file has content stored in 30003000 sectors located randomly on the disk. Assuming average rotational latency, the total time (in seconds, rounded off to  22 decimal places) to read the entire file from the disk is ______.\_\_\_\_\_\_.
View worked solution

Answer: 30.06

To find the total time required to read the entire file, we need to calculate the time taken to access and read a single sector, and then multiply it by the total number of randomly located sectors (30003000).

Step 1: Calculate Rotation Time and Average Rotational Latency

  • Rotation speed: 6000 RPM6000\text{ RPM} (Rotations Per Minute)
  • Time for one full rotation: Rotation Time=60 seconds6000=0.01 seconds=10 ms\text{Rotation Time} = \frac{60\text{ seconds}}{6000} = 0.01\text{ seconds} = 10\text{ ms}
  • Average rotational latency (TrotT_{\text{rot}}): Trot=12×Rotation Time=10 ms2=5 msT_{\text{rot}} = \frac{1}{2} \times \text{Rotation Time} = \frac{10\text{ ms}}{2} = 5\text{ ms}

Step 2: Calculate Sector Transfer Time

  • There are 500500 sectors per track. Reading one full track takes one full rotation (10 ms10\text{ ms}).
  • Transfer time for one sector (TtransT_{\text{trans}}): Ttrans=Rotation TimeSectors per track=10 ms500=0.02 msT_{\text{trans}} = \frac{\text{Rotation Time}}{\text{Sectors per track}} = \frac{10\text{ ms}}{500} = 0.02\text{ ms}

Step 3: Calculate Time to Access and Read One Random Sector

Since the sectors are located randomly on the disk, each sector access requires a seek operation, rotational delay, and transfer time:

Tsector=Tseek+Trot+Ttrans=5 ms+5 ms+0.02 ms=10.02 ms\begin{align*} T_{\text{sector}} &= T_{\text{seek}} + T_{\text{rot}} + T_{\text{trans}} \\ &= 5\text{ ms} + 5\text{ ms} + 0.02\text{ ms} \\ &= 10.02\text{ ms} \end{align*}

Step 4: Calculate Total Time for 3000 Sectors

Total Time=3000×Tsector=3000×10.02 ms=30060 ms=30.06 seconds\begin{align*} \text{Total Time} &= 3000 \times T_{\text{sector}} \\ &= 3000 \times 10.02\text{ ms} \\ &= 30060\text{ ms} \\ &= 30.06\text{ seconds} \end{align*}

Thus, the total time to read the entire file is 30.0630.06 seconds.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore I/O Scheduling questions