Consider the following two statements about interrupt handling mechanisms in a CPU.
: In non-vectored interrupt mechanism, it usually takes more time to start the Interrupt Service Routine (ISR) when compared to that in a vectored interrupt mechanism.
: In daisy-chain interrupt mechanism, the CPU polls all the input devices individually to determine the source of the interrupt.
Which one of the following options is correct with respect to and
View worked solution
Answer: C
To determine the correctness of the statements, let us analyze each one:
Statement S1:
- Vectored Interrupts: The interrupting device directly provides the interrupt vector (or its address) to the CPU. This allows the CPU to immediately load the program counter with the ISR address and start execution.
- Non-Vectored Interrupts: The CPU branches to a single, predefined memory address. From there, a software routine (polling) must run to identify which device raised the interrupt before branching to its specific ISR. This additional software overhead increases the latency to start the actual ISR.
Thus, S1 is True.
Statement S2:
- Daisy-Chain Mechanism: This is a hardware-based priority resolution technique. When an interrupt occurs, the CPU sends an Interrupt Acknowledge () signal. This signal propagates serially through the devices connected in a chain. The highest-priority device that requested the interrupt intercepts the signal and places its vector address on the data bus.
- The CPU does not poll the devices individually in a daisy-chain setup; the hardware structure itself determines the source. Individual polling is done in software-based polling schemes.
Thus, S2 is False.
Therefore, is true and is false.
Free practice · Your answers on this page are not saved.
