GATE CS 2025, set 1 · Question 11 · Computer Organization and Architecture · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Suppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can interrupt the processor asynchronously. The processor needs to execute the interrupt service routine (ISR) to serve this interrupt. The following steps (not necessarily in order) are taken by the processor when the interrupt arrives:
(i) The processor saves the content of the program counter.
(ii) The program counter is loaded with the start address of the ISR.
(iii) The processor finishes the present instruction.
Which ONE of the following is the CORRECT sequence of steps?
- (A) (iii), (i), (ii)
- (B) (i), (iii), (ii)
- (C) (i), (ii), (iii)
- (D) (iii), (ii), (i)
Answer
Answer (A)
Answer from the official GATE CS 2025 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes