edited by
17,312 views
39 39 votes

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 of the following is the correct order in which the events above occur?

  1. QPTRS
  2. PTRSQ
  3. TRPQS
  4. QTPRS

4 Answers

Best answer
67 67 votes

Answer should be A.

edited by
13 13 votes
the answer should be A  not D because we should first store the process status info into the stack and then load the new value of PC into the program counter as the process status includes the PC of the process as well... if we directly overwrite the new value of PC into the PC register we will lose the old value  hence we should copy it into the stack first..
0 0 votes
The sequence of execution in the case of an interrupt while executing a process L is:
(Q) The processor finishes the execution of the current instruction
(P) The processor pushes the process status of L onto the control stack
(T) The processor loads the new PC value based on the interrupt
(R) The processor executes the interrupt service routine
(S) The processor pops the process status of L from the control stack
This is the sequence because when a process is in the middle of execution if an interrupt comes then that process execution is completed then the interrupt is serviced.
Answer:
Position:
Show:

Related questions

32 32 votes
5 answers 5 answers
11.5k
11.5k views
Misbah Ghaya asked Nov 23, 2016
11,529 views
State whether the following statements are TRUE or FALSE with reason:The data transfer between memory and I/O devices using programmed I/O is faster than interrupt-driven...
13 13 votes
5 5 answers
6.3k
6.3k views
Misbah Ghaya asked Nov 9, 2016
6,291 views
State whether the following statements are TRUE or FALSEIn a microprocessor-based system, if a bus (DMA) request and an interrupt request arrive sumultaneously, the micro...
7 7 votes
4 answers 4 answers
6.3k
6.3k views
go_editor asked Jun 12, 2016
6,341 views
An interrupt in which the external device supplies its address as well as the interrupt requests is known asvectored interruptmaskable interruptnon maskable interruptdesi...
1 1 vote
0 0 answers
19
19 views
NIL DAS asked Dec 11, 2025
19 views
This post was deleted with below mentioned reason.
Delete Reason Name: Add your approach/doubt where you were struck while solving it in the question itself.
Delete Reason Note:
Has Author Submitted Revision Edit?: NOT YET
The post is awaiting revision edit from its author accordingly with mentioned reason.
Assume the number of clock cycles for a polling operation, including transferring to the polling routine, accessing the device, and restarting the user program, is 400 cy...