Concept Flow - Why interrupt handling is critical in RTOS
Interrupt Occurs
CPU Pauses Current Task
Interrupt Handler Runs
Handler Signals RTOS (e.g., sets flags)
RTOS Decides Task Switch?
Switch to Higher Priority Task
Continue Execution
When an interrupt happens, the CPU stops the current task, runs the interrupt handler, then the RTOS decides if a higher priority task should run before resuming.
