Explanation:
When an interrupt occurs, the Interrupt Service Routine (ISR) is typically executed after the current instruction or process is completed. The processor first finishes the execution of the instruction it is currently working on, then it halts the current process and transfers control to the ISR to handle the interrupt. This ensures that the CPU completes its current task before responding to the interrupt.
Explanation by: Mr. Dubey
When an interrupt occurs, the Interrupt Service Routine (ISR) is typically executed after the current instruction or process is completed. The processor first finishes the execution of the instruction it is currently working on, then it halts the current process and transfers control to the ISR to handle the interrupt. This ensures that the CPU completes its current task before responding to the interrupt.