Polling, interrupts, DMA and completion style
Compare polling with an interrupt on a timeline of ticks, see a DMA engine move a block while the CPU works, and tell blocking from asynchronous. IPC and device I/O · Operating systems.
A disk read needs 8 ticks. How does the CPU find out it finished, who moves the bytes, and why can a read return with no data at all?
What you will learn
- Compare polling with an interrupt by the CPU ticks each one spends
- Trace a DMA transfer and name what is handed to the engine
- Separate whether a call waits from whether its result comes back later
Lesson outline
- Finding out that a device is done
- Moving the block without the CPU
- Four ways to call one read
15 minutes · 3 scenes · 0 predict checks · 11 quiz questions
The full lesson is available with Premium.