Concept Flow - Nested interrupts
Main program running
Interrupt 1 occurs
Interrupt 1 handler starts
Interrupt 2 occurs (higher priority)
Interrupt 2 handler starts
Interrupt 2 handler ends
Resume Interrupt 1 handler
Interrupt 1 handler ends
Resume main program
The main program runs until an interrupt occurs. If a higher priority interrupt happens during an interrupt handler, it interrupts that handler. After the higher priority handler finishes, the previous handler resumes, then the main program continues.