Difficulty: Easy
Correct Answer: there are no priority considerations
Explanation:
Introduction / Context:
Polled I/O is a simple technique where the CPU periodically checks device status flags and services devices when they are ready. While easy to implement, it can be inefficient or unfair if multiple devices require urgent attention. Understanding when polling is acceptable helps balance simplicity and responsiveness.
Given Data / Assumptions:
Concept / Approach:
Polling works best when devices have similar service needs and there is no strict priority ordering. If priority matters (e.g., emergency sensors), interrupt-driven or DMA-based solutions are better because they allow devices to signal the CPU asynchronously and with a defined priority, minimizing latency for critical events.
Step-by-Step Solution:
Verification / Alternative check:
Design guidelines in embedded systems texts recommend polling for simple, slow, or evenly weighted tasks, switching to interrupts for sporadic or high-priority events.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
there are no priority considerations
Discussion & Comments