An interrupt is a signal that asks the CPU to stop a task and resume it later. A hardware interrupt comes from a hardware device or controller; pressing a keyboard button and completing a file write are examples. section 6.7
Interrupts help an operating system preempt a running task and give another task a turn. A timer can interrupt a thread after a time slice, letting another thread use the processor. Software interrupts, such as system calls, are caused by an application; timer and error interrupts are also distinguished. section 6.7 section 6.8



