Interrupts – the heartbeat of a Unix kernel
Modern operating systems are mostly event driven – network cards receive packets, users hit keys or a mouse buttons, built-in timer create events or data arrives from a hard drive. To be able to process these events, a CPU needs a mechanism to stop whatever it is currently doing and run some code designed to deal with the event – and this is what is called an interrupt.
How do interrupts work?
Formally speaking, we could define an interrupt as an event that instructs the CPU to stop the current ...
Read more at leftasexercise.com