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?
- A. 0.15%
- B. 0.08%
- C. 0.23%
- 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%.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Three caches with 4 one-word lines each see the block trace [0, 1, 2, 3, 0, 4, 1, 5, 2, 6, 3, 7, 0, 4]: (i) direct-mapped, (ii) 2-way…
- A 64-byte, 2-way set-associative cache with 16-byte blocks and LRU replacement is empty. The processor reads these byte addresses in…
- A 16-bit instruction set has 4-bit address fields and expanding opcodes: three-address instructions use a 4-bit opcode, two-address…
- A RISC machine has 32-bit (4-byte) instructions at word-aligned addresses and a PC-relative branch with a 12-bit signed offset field…
- A direct-mapped cache has 8 lines (block = 1 word). A program issues block references [0, 8, 0, 8, 1, 9, 1, 9, 2, 10, 2, 10, 0, 8, 1, 9]…
- An 8-bit CPU adds the 16-bit two's-complement numbers 0x7F9C and 0x00A7 with ADD on the low bytes followed by ADC (add with carry) on the…