GATE / CS ARCHIVE

GATE CSE 2009 / QUESTION 8

Interrupt recognition point

Computer Organization & Architecture · Input/Output, DMA & Interrupts · Full GATE CSE 2009 paper

GATE 2009, Q8 1 mark · MCQ
Report issue

Input/Output, DMA & Interrupts

Question 8, GATE 2009: When does a CPU normally begin interrupt service? A immediately when raised; B after checking at the end of fetch; C after checking when the current instruction finishes; D at fixed time intervals.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

In the conventional instruction-cycle model, an enabled pending interrupt is checked after the current instruction completes, then control transfers to its service routine. This preserves an instruction boundary rather than interrupting immediately at an arbitrary internal step. Thus C.

The usual instruction-cycle model completes an instruction before recognizing a pending interrupt and saving a consistent next-instruction state. This gives C. An asynchronous request can arrive earlier, but arrival is not the same as immediate transfer of control. Fetch completion is too early in that simple model, and periodic checking is not the general interrupt mechanism. Architecture-specific restartable instructions and precise-exception implementations are finer details outside this convention.

Original paper, page 2