Winter Semester 2026–27 · VIT-AP · BACSE106 · Operating Systems · Dr. Krithika L.B

I/O hardware: polling, interrupts and DMA

Compare the three transfer methods, animated.

Module 5 Session 5.1 Lesson 1 of 3

Programmed I/O, Interrupts, and DMA

Who copies the bytes, and how often the CPU is bothered.

Three ways to talk to a device

MethodCPU roleWhen to use
Polling / programmed I/OSpin on a status register; copy every byteTiny, cheap, or no interrupt line
Interrupt-drivenSleep; handler runs per byte or per bufferTypical character devices
DMAProgram the DMA engine; one interrupt per bufferDisks, NICs, bulk transfer

Software layers: syscall → file/socket layer → generic block/char → driver → bus. Buffering and caching sit in the middle so a read is not always a device access.

Count CPU touches for 4096 bytes