An interrupt is a request of the processor to suspend its current program and transfer control to a new program called the Interrupt Service Routine (ISR).
Special hardware mechanisms that are designed for maximum speed force the transfer.
The ISR determines the cause of the interrupt, takes the appropriate action, …