Skip to content
Official PYQ · 2004

GATE CS 2004 Q68 — I/O Interface: Interrupt and DMA Mode

Explain with AI

A hard disk with a transfer rate of 1010 Mbytes/second is constantly transferring data to memory using DMA. The processor runs at 600600 MHz, and takes 300300 and 900900 clock cycles to initiate and complete DMA transfer respectively. If the size of the transfer is 2020 Kbytes, what is the percentage of processor time consumed for the transfer operation?

Choose one option
View worked solution

Answer: D

To find the percentage of processor time consumed during the DMA transfer, we compare the time the processor is busy with the total time taken for the transfer.

  1. Processor Busy Time:

    The processor is active only during the initiation and completion of the DMA transfer.

    Total cycles consumed=300+900=1200 cycles\text{Total cycles consumed} = 300 + 900 = 1200 \text{ cycles} Processor busy time=1200 cycles600×106 Hz=2×10−6 seconds=2 μs\text{Processor busy time} = \frac{1200 \text{ cycles}}{600 \times 10^6 \text{ Hz}} = 2 \times 10^{-6} \text{ seconds} = 2 \ \mu\text{s}
  2. Total Transfer Time:

    The hard disk transfers 20 KB20 \text{ KB} of data at a rate of 10 MB/s10 \text{ MB/s}.

    Total transfer time=20×103 bytes10×106 bytes/second=2×10−3 seconds=2 ms\text{Total transfer time} = \frac{20 \times 10^3 \text{ bytes}}{10 \times 10^6 \text{ bytes/second}} = 2 \times 10^{-3} \text{ seconds} = 2 \text{ ms}
  3. Percentage of Processor Time Consumed: Percentage=(Processor busy timeTotal transfer time)×100=(2 μs2 ms)×100=0.1%\text{Percentage} = \left( \frac{\text{Processor busy time}}{\text{Total transfer time}} \right) \times 100 = \left( \frac{2 \ \mu\text{s}}{2 \text{ ms}} \right) \times 100 = 0.1\%

Thus, the processor is consumed for 0.1%0.1\% of the transfer time.

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

Published
Report a correction
Keep exploringMore I/O Interface: Interrupt and DMA Mode questions