An interrupt is an asynchronous signal from hardware (a keyboard press, a disk finishing a read, a timer tick) that makes the CPU pause its current work and run an interrupt handler.
An exception or trap is synchronous and caused by the running instruction: a divide by zero, a page fault, or an intentional system call.
Handling: save the CPU state, look up the handler in the interrupt vector table, run it in kernel mode, then restore the state and resume (or schedule another process). The timer interrupt is how the OS regains control for preemptive scheduling.
Loading…