GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A disk delivers 4,096,000 bytes/s to memory through a DMA controller in cycle-stealing mode, one 32-bit word at a time. Each word steals one 100 ns memory cycle from the CPU. Each 4 KB block also costs 5 µs of CPU time for DMA setup and completion handling. The fraction of CPU time lost is closest to:
- A. 10.2%
- B. 5.4%
- C. 21.5%
- D. 10.7%
Correct answer: D. 10.7%
The rate is 1000 blocks/s, each with 1024 words. Cycle stealing costs 1024 × 100 ns = 102.4 µs per block and the setup adds 5 µs, giving 107.4 µs × 1000 = 0.1074 of each second. Omitting the 5 µs gives the 10.2% trap.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Six instructions execute in program order: I1: LW R1, 0(R2) I2: ADD R3, R1, R4 I3: SUB R4, R3, R2 I4: SW R3, 4(R1) I5: AND R1, R4, R3 I6…
- A cache has 4 lines of one word each. The word-address trace 0, 4, 0, 4, 1, 5, 1, 5, 2, 6, 3, 7, 0, 4, 1, 5, 8, 0, 8, 4, 2, 6 is applied…
- A 4-bit non-restoring divider divides the unsigned dividend Q = 1101 (13) by the divisor M = 0011 (3). The accumulator A is 5 bits wide…
- In IEEE 754 single precision (round-to-nearest-even), let a = 2²⁴ = 16777216, b = 1 and c = 1. The two sums S₁ = (a + b) + c and S₂ = a +…
- Three processors P0, P1, P2 use a snooping MESI write-invalidate protocol on one block that is initially invalid everywhere. A read miss…
- A program has a serial fraction of 5% when run on 1 processor. Under Amdahl's law (fixed problem size) the speedup on 64 processors is SA…