Interrupt

Interrupt Service Routine (ISR)

An interrupt service routine (ISR) is a software routine that hardware invokes in response to an interrupt.

Interrupt Service Routines (ISRs) are fundamental components in the handling of interrupts in computer systems. When an interrupt occurs, the normal flow of program execution is temporarily halted and control is transferred to the corresponding ISR.

But how is the ISR implemented?

I can see how Polling is implemented. See Interrupt Handling for the actual mechanism.

  • Essentially, at the end of every instruction, you check if there is an interrupt triggered

Who writes ISRs?

Interrupt Service Routines (ISRs) are typically custom written by the I/O driver or the low-level system software that interacts with specific hardware devices.