liveBook · Manning

Interrupt

As explained in The Coder Cafe

An interrupt is a hardware or software signal that requests immediate processor attention for an event or condition.

An interrupt is a hardware or software signal that requests immediate processor attention for an event or condition. Interrupts connect physical activity and operating-system behavior: a mouse movement or received network packet can trigger a hardware interrupt, while a system call or exception can trigger a software interrupt. section 8.2.7

Common interrupt sources include:

  • Hardware interrupts from devices such as a mouse or network interface card. section 8.2.7
  • Software interrupts from system calls, such as creating a process, or exceptions such as a segmentation fault caused by division by zero. section 8.2.7
  • Maskable interrupts, which the CPU can temporarily enable or disable to protect a critical operation. section 8.2.7

Why interrupts matter during lockups

A hard lockup occurs when a CPU loops in kernel mode for more than 10 seconds without allowing other interrupts to run. A soft lockup instead prevents other tasks from running for more than 20 seconds, making the distinction useful evidence during low-level incident diagnosis. section 8.2.7

How The Coder Cafe covers it

How deep it goes
Defines hardware, software, and maskable interrupts with examples but does not detail interrupt-handler internals.
Examples
Uses mouse movement, received network packets, process creation, segmentation faults, and CPU lockups as concrete examples.
What you can do after
Evaluate/understand how interrupt behavior provides evidence when diagnosing low-level operating-system lockups.
How it connects
Connects interrupts to kernel mode, user space, context switching, system calls, exceptions, soft lockups, and hard lockups.

Also explained in

Compare how 6 books explain interrupt →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Coder Cafe. The section links point to the parts of the book it draws on.