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?
- A. 6.67%
- B. 20.00%
- C. 2.67%
- 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%.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A fully associative cache (block = one word) sees the block reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5, starting empty. How many…
- A 5-stage pipeline resolves conditional branches in ID, with forwarding into ID for ALU results but the branch needs its operand at the…
- A branch alternates T, N, T, N, … for 20 executions, starting with T. A 2-bit saturating counter (states 0-3, predicts taken in states 2…
- A 5-stage pipeline with full forwarding has a measured CPI of 1.40 (ideal 1). 25% of instructions are loads, and 40% of loads are…
- A disk spins at 6000 rpm and each track holds 256 KB. A 1 MB file is stored on 4 consecutive tracks of the same cylinder-group; a head…
- Over 1000 memory references, 40 miss in L1 and 20 of those also miss in L2. L1 hit time is 1 cycle, L2 hit time 10 cycles, and memory adds…