Skip to main content
PreparationZone Logo
PreparationZone
Back to Fundamentals

Fundamentals · Medium · Free

What are hardware interrupts vs software interrupts?

FresherFundamentalsOperating Systems
Model answer

Interrupts

TypeSourceExample
HardwareDevicesDisk finished read, NIC packet
SoftwareTrap instructionSystem call, divide by zero

CPU saves context, jumps to interrupt handler in kernel, then resumes user code—how I/O overlaps with compute.

Contrast polling (wastes CPU) vs interrupts (event-driven).