Unit IO-2b
Unit IO-2b
Interrupt-driven I/O
• Polling takes valuable CPU time
• Open communication only when some data has to be
passed -> Interrupt
• I/O interface, instead of the CPU, monitors the I/O
device
• When the interface determines that the I/O device is
ready for data transfer, it generates an Interrupt
Request to the CPU
• Upon detecting an interrupt, CPU stops momentarily
the task it is doing, branches to the service routine to
process the data transfer, and then returns to the task
it was performing
2 Interrupt Initiated I/O
2 Interrupt Processing from CPU viewpoint
3 Direct Memory Access (DMA)
The transfer of data between the peripheral and memory
without the interaction of CPU and letting the peripheral
device manage the memory bus directly is termed as Direct
Memory Access (DMA).