GATE Computer ScienceHardGATE CS (PYQ pattern)
Three interrupt handlers have no overhead: A (priority 1, arrives at 0 µs, runs 10 µs), B (priority 3, arrives at 4 µs, runs 5 µs) and C (priority 2, arrives at 6 µs, runs 4 µs); a larger number is a higher priority. When does C finish (a) with nested, preemptive priority interrupts and (b) when a running handler is never preempted and the highest-priority pending handler runs next?
- A. (a) 13 µs, (b) 19 µs
- B. (a) 19 µs, (b) 13 µs
- C. (a) 13 µs, (b) 14 µs
- D. (a) 9 µs, (b) 19 µs
Correct answer: A. (a) 13 µs, (b) 19 µs
(a) A runs 0–4; B preempts and runs 4–9; C (arrived at 6, below B) runs 9–13; A resumes and finishes at 19. (b) A runs to completion at 10; B (higher) runs 10–15, then C 15–19. 14 would be C running right after A.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A cache access takes 2 ns on a hit; a miss takes 22 ns in total (hierarchical model). The average access time is 5 ns. What is the miss…
- In an n-bit two's-complement adder, which pair (carry into the MSB, carry out of the MSB) signals signed overflow?
- The logic of a processor takes 48 ns per instruction unpipelined. Pipelining into k stages gives a cycle time of 48/k + 3 ns (latch…
- A branch target buffer (BTB) lets the fetch unit predict taken branches with no bubble when it hits and predicts correctly. Branches are…
- A stack grows downwards in 4-byte units and SP = 0x8000 initially. The instructions PUSH, PUSH, CALL (pushes a 4-byte return address)…
- A Wallace-tree multiplier of 16 × 16 bits must add 16 partial products using layers of 3:2 carry-save adders (each group of 3 rows becomes…