Difficulty: Easy
Correct Answer: the device assigned the highest priority is serviced first
Explanation:
Introduction / Context:
Interrupt-driven input/output (I/O) lets peripherals request attention from the processor without constant polling. When several devices assert interrupts at the same instant, the system must decide which one the CPU will service first. Understanding priority resolution is crucial for designing reliable embedded and computer systems.
Given Data / Assumptions:
Concept / Approach:
Most architectures use fixed or programmable priority schemes. A centralized interrupt controller (for example, a PIC) resolves simultaneous requests and forwards only the highest-priority request to the CPU. Lower-priority requests remain pending until the CPU completes the current service routine and re-enables interrupts or performs nested servicing according to policy.
Step-by-Step Solution:
Verification / Alternative check:
Datasheets for programmable interrupt controllers show priority rotation or fixed priority tables; simultaneous requests are deterministically resolved to one highest-priority source, confirming the behavior described.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
the device assigned the highest priority is serviced first
Discussion & Comments