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:
Define priority: each source has a rank (higher number or lower vector index depending on design).Simultaneous assertion: the controller compares priorities.Result: the highest-priority device wins arbitration and is serviced first.Pending requests: others remain latched and are serviced subsequently when permitted.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