GATE Computer ScienceVery hardGATE CS (PYQ pattern)
An interrupt is recognised only at instruction boundaries. The longest instruction takes 30 cycles; on average an interrupt arrives half-way through an instruction of average length 6 cycles. Saving state and vectoring takes 20 cycles. What are the worst-case and average interrupt-to-first-handler-instruction latencies (average = half of the average instruction length + overhead)?
- A. 20 cycles worst, 23 cycles average
- B. 30 cycles worst, 3 cycles average
- C. 50 cycles worst, 23 cycles average
- D. 50 cycles worst, 26 cycles average
Correct answer: C. 50 cycles worst, 23 cycles average
Worst case: wait out the longest instruction (30) + 20 = 50. Average: 6/2 + 20 = 23.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A program has base CPI 1.2 and makes 1.4 memory references per instruction. Per memory reference, 3% miss in L1 and 1.2% miss in L2 (a…
- Design 1 is a direct-mapped cache (hit 1.0 ns, miss rate 6%) with a victim buffer that catches 25% of its misses for 1 ns extra; the other…
- A cache with 8-word blocks is cold. A program reads an array of 1000 consecutive words once, starting at a block boundary. How many…
- A processor has 64 general registers and a fixed 32-bit instruction word. Its three-register format has three 6-bit register fields and…
- A cache has a 2-cycle hit time. 70% of memory accesses are reads, which miss 5% of the time with a 40-cycle miss penalty. The other 30%…
- An 8-bit floating-point format has 1 sign bit, 4 exponent bits with bias 7 and 3 fraction bits, with IEEE-style rules (exponent field 0000…