COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

OPERATING SYSTEMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is the first thing that needs to happen when an interrupt is detected?
A
Change the process state of the currently executing process to blocked
B
Load the interrupt service routine
C
Pop registers off the memory stack
D
Push the current contents of CPU registers onto the memory stack
Explanation: 

Detailed explanation-1: -Whenever an interrupt occurs, it causes the CPU to stop executing the current program. Then comes the control to interrupt the handler or interrupt service routine.

Detailed explanation-2: -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.