Interrupts are events that alter sequence of instructions executed by a processor. They can come from either hardware (exceptions, NMI, IRQ) or software.
context switches
ctx
derive
A context switch occurs when a multitasking operatings system suspends the currently running process, and starts executing another.