-
A CPU generally handles an interrupt by executing an interrupt service routine
-
- as soon as an interrupt as raised
- by checking the interrupt register at the end of fetch cycle
- by checking the interrupt register after finishing the execution of the current instruction
- by checking the interrupt register at fixed time intervals
- as soon as an interrupt as raised
Correct Option: C
After finishing the execution of each instruction the CPU reads the interrupt pins to recognize the interrupts.
INTR = 1 = Interrupt is Present (service the Interrupt) = 0 Interrupt is not present (Go to next Instruction fetch from user program).
⇒ Hardware detects interrupts immediately. But CPU acts only after its current instruction this followed to
ensure integrity of instructions.