GATE CSE 2018 Q19: Order of events when an interrupt is serviced
- Operating System
- 1 mark
- MCQ
- −1/3 if wrong
Syllabus topics: I/O interface: interrupt and DMA; System calls, processes and threads
Question
The following are some events that occur after a device controller issues an interrupt while process is under execution.
(P) The processor pushes the process status of onto the control stack.
(Q) The processor finishes the execution of the current instruction.
(R) The processor executes the interrupt service routine.
(S) The processor pops the process status of from the control stack.
(T) The processor loads the new PC value based on the interrupt.
Which one of the following is the correct order in which the events above occur?
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: A (official GATE 2018 final answer key)
Concept used: Interrupt handling: complete the current instruction, save the state, jump to the handler via the new PC, run the ISR, then restore the state.
First step: Decide what must happen before the old state can be saved, and what must be saved before the PC is overwritten.
Full step-by-step solution
Loading…
Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.
More questions on I/O interface: interrupt and DMA
Every PYQ on this topic →Share this question
Source: official GATE 2018 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key
More Operating System PYQs
- 2026 Session 1 · Q29False statements about deadlocks
- 2026 Session 1 · Q35Minimum resource instances for deadlock freedom (5 processes, max 2)
- 2026 Session 1 · Q59Disk transfer time for random sectors on tracks 5, 12, 7
- 2026 Session 1 · Q63Number of printf calls with fork, continue and break
- 2026 Session 1 · Q64Average FCFS waiting time for alternating A and C processes
- 2026 Session 2 · Q23CPU scheduling algorithm that cannot be preemptive