GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A disk delivers 4,096,000 bytes/s to memory through a DMA controller in cycle-stealing mode, one 32-bit word at a time. Each word steals one 100 ns memory cycle from the CPU. Each 4 KB block also costs 5 µs of CPU time for DMA setup and completion handling. The fraction of CPU time lost is closest to:

  1. A. 10.2%
  2. B. 5.4%
  3. C. 21.5%
  4. D. 10.7%

Correct answer: D. 10.7%

The rate is 1000 blocks/s, each with 1024 words. Cycle stealing costs 1024 × 100 ns = 102.4 µs per block and the setup adds 5 µs, giving 107.4 µs × 1000 = 0.1074 of each second. Omitting the 5 µs gives the 10.2% trap.

More Computer Organization and Architecture questions

Exams that ask this topic