COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

OPERATING SYSTEMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
If an interrupt needs to be serviced, the current contents of the CPU are placed____
A
In other registers
B
In secondary storage
C
On a stack in main memory
D
In a queue in main memory
Explanation: 

Detailed explanation-1: -Servicing an interrupt consists of two, and sometimes three, steps: Saving volatile information (such as register contents) quickly, in an interrupt service routine that runs at IRQL = DIRQL. Processing the saved volatile information in a deferred procedure call (DPC) that runs at IRQL = DISPATCH LEVEL.

Detailed explanation-2: -Whenever an interrupt occurs, the controller completes the execution of the current instruction and starts the execution of an Interrupt Service Routine (ISR) or Interrupt Handler. ISR tells the processor or controller what to do when the interrupt occurs.

Detailed explanation-3: -CPU saves the state of the executing program. CPU passes control of computer to interrupt handler. When interrupt handler is finished, CPU transfers control back to originally executing program.

There is 1 question to complete.