GATE Computer ScienceModerateGATE CS (PYQ pattern)

A device produces a 40,000 bytes/s stream into a 16-byte buffer, and the CPU (500 MHz) polls it periodically, never letting the buffer overflow. Each poll costs 300 cycles, and every byte found is copied out at 10 cycles per byte. What fraction of CPU time does this device consume at the lowest safe polling rate?

  1. A. 0.15%
  2. B. 0.08%
  3. C. 0.23%
  4. D. 2.3%

Correct answer: C. 0.23%

The buffer fills in 16/40000 s = 0.4 ms, so at least 2500 polls/s: 2500 × 300 = 7.5×10⁵ cycles/s. Copying costs 40,000 × 10 = 4×10⁵ cycles/s regardless of the poll rate. Total 1.15×10⁶ of 5×10⁸ = 0.23%. Forgetting the copy gives 0.15%; a factor-10 clock slip gives 2.3%.

More Computer Organization and Architecture questions

Exams that ask this topic