CS FundamentalsEasyGATE CS (PYQ pattern)

A disk delivers 20 MB/s (1 MB = 10^6 bytes) to memory by DMA, 4 bytes per bus cycle. Each word transfer steals one 40 ns memory cycle from the CPU. In addition, one completion interrupt is raised per 4096-byte block and costs the CPU 10 microseconds. What percentage of CPU time is lost in total?

  1. A. 20.0%
  2. B. 24.9%
  3. C. 4.9%
  4. D. 29.8%

Correct answer: B. 24.9%

Words/s = 5x10^6, so cycle stealing = 5x10^6 x 40 ns = 20%. Blocks/s = 20x10^6/4096 = 4882.8, interrupts cost 4882.8 x 10 us = 4.9%. Total = 24.9%.

More Operating Systems questions

Exams that ask this topic