GATE CS 2018 · Question 19 · Computer Organization and Architecture · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

The following are some events that occur after a device controller issues an interrupt while process L is under execution.
(P) The processor pushes the process status of L 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 L 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?

  1. (A) QPTRS
  2. (B) PTRSQ
  3. (C) TRPQS
  4. (D) QTPRS
Answer

Answer (A)

Answer from the official GATE CS 2018 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes