Practice question · Match the pairs
Match each mechanism or component to what it does.
- Polling
- Interrupt
- Interrupt handler
- DMA controller
- Moves a whole block without the CPU touching each byte
- The CPU repeatedly asks whether the device is ready
- The device signals the CPU only when it needs attention
- The short routine run before the CPU resumes its work
Hints
- Two of these describe who takes the initiative, the CPU or the device.
- One is a piece of code and one is a piece of hardware.
Show the answer
- Polling → The CPU repeatedly asks whether the device is ready
- Interrupt → The device signals the CPU only when it needs attention
- Interrupt handler → The short routine run before the CPU resumes its work
- DMA controller → Moves a whole block without the CPU touching each byte
Why
Polling puts the CPU in charge of asking; an interrupt puts the device in charge of telling. The handler is the code run on arrival; the DMA controller is separate hardware that does the bulk copying. The shift from asking to being told is the central idea of the lesson.
Practise Input-Output and Peripheral Communication
The app has 5 more questions on this lesson, and keeps your place in the course. Computer Science I is free to start.
More questions on Input-Output and Peripheral Communication
- Order what happens when a device signals the CPU with an interrupt.
- Polling, interrupts and DMA all move data between a device and memory. Why does adding DMA improve throughput…
- Sort each peripheral by the direction in which data mainly flows.
- A DMA controller writes data into memory while the CPU holds an older copy of that region in its cache. What…
- Select every statement that is a genuine advantage of interrupts over polling.