GATE Computer ScienceHardGATE CS (PYQ pattern)

A device delivers 2,000,000 bytes/s into a 16-byte FIFO and raises an interrupt each time 12 bytes have accumulated. Each interrupt costs 600 CPU cycles of fixed overhead plus 20 cycles per byte copied, and the handler empties the 12 bytes. What fraction of a 1.5 GHz CPU does the device consume?

  1. A. 6.67%
  2. B. 20.00%
  3. C. 2.67%
  4. D. 9.33%

Correct answer: D. 9.33%

Interrupts/s = 2×10⁶ / 12 = 166,667; each costs 600 + 12 × 20 = 840 cycles → 1.4×10⁸ cycles/s = 9.33%. Forgetting the copy cost gives 6.67%; one interrupt per 4-byte word gives 20.00%; copying alone is 2.67%.

More Computer Organization and Architecture questions

Exams that ask this topic