Chapter 11 · SimulationI/O: Polling, Interrupts, DMA? ← Chapter 11 Polling Interrupt DMA Units Latency Low Medium High Read Write Speed 2/s Compare methods IRQ 0 CPU busy 0 Moved 0/0 Step 0/0 CloseI/O: Polling, Interrupts, DMAA block made of units is moved between the device and memory through the device controller. With polling the CPU busy-waits on the status register and copies every unit itself; with interrupts the device raises one IRQ per unit and the interrupt service routine (ISR) copies the unit; with DMA the DMA controller moves the whole block and raises a single completion IRQ. The diagram shows which component is active; the lanes below show CPU activity and transferred data over time.UsageChoose the I/O method, the number of units (1–64), the device latency and the transfer direction.Play or step through; the side panel shows the CPU mode, the controller registers and where the CPU time goes.Compare methods shows the interrupt count and the CPU busy time of the three methods for the same transfer.TermsPollingThe CPU reads the status register in a loop until it is READY, then copies.InterruptThe device raises one IRQ per unit; the ISR copies the unit.DMAThe DMA controller copies the block; a single IRQ at the end.StatusController register: BUSY or READY.DataController register holding one unit.LatencyTime the device needs per unit (1, 2 or 4).CPU busyTime units the CPU spends on this I/O.Legend polling ISR I/O work user work ● data unit ⚡ IRQKeys←→ stepSpace playHomeEnd first / lastEsc close