All Exams Test series for 1 year @ ₹349 only
Question

Consider the following two statements about interrupt handling mechanisms in a CPU.

S1: 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.

S2: 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 S1 and S2 ?

The correct answer is
S1 is true and S2 is false

Interrupt Mechanisms: Statement Analysis

This solution analyzes two statements regarding CPU interrupt handling mechanisms.

Statement S1: Non-Vectored vs. Vectored Interrupts

Statement S1 claims that non-vectored interrupts typically take longer to start the Interrupt Service Routine (ISR) compared to vectored interrupts.

  • Non-Vectored Interrupts: When an interrupt occurs, the CPU receives a single interrupt signal. It then needs to determine which device interrupted and where its ISR is located. This often involves the CPU sequentially checking (polling) each device or a status table, which adds delay before the correct ISR can be executed.
  • Vectored Interrupts: In this mechanism, the interrupting device provides a unique identifier (vector) directly to the CPU. This vector is used to quickly look up the address of the corresponding ISR in a predefined table (Interrupt Vector Table). This direct lookup is faster than polling multiple devices.

Therefore, Statement S1 is true because the polling process required in non-vectored systems inherently introduces more latency than the direct vector identification in vectored systems.

Statement S2: Daisy-Chain Interrupt Mechanism

Statement S2 asserts that in a daisy-chain interrupt mechanism, the CPU polls all input devices individually.

  • Daisy-Chain Interrupts: This is a hardware-based priority interrupt scheme. Devices are connected in a series (chain). When an interrupt occurs, the CPU sends an interrupt acknowledgment signal. This signal travels down the chain. The first device encountered that has an active interrupt request responds by inserting its unique interrupt vector into the CPU's data bus. The subsequent devices in the chain do not receive the acknowledgment signal if a device prior to them responds.
  • Polling vs. Daisy-Chain: CPU polling involves the CPU actively querying each device to check its status. The daisy-chain mechanism, however, relies on the interrupt signal propagation and device response to identify the source, prioritizing devices based on their position in the chain, without the CPU needing to check each one individually.

Therefore, Statement S2 is false. The daisy-chain mechanism determines the interrupt source through hardware prioritization and vector passing, not by the CPU polling every device.

Conclusion on Interrupt Statements

Based on the analysis:

  • Statement S1 is true.
  • Statement S2 is false.

Thus, the correct option states that S1 is true and S2 is false.

Was this answer helpful?

Important Questions from Types of Interrupts

  1. Which interrupt in 8085 Microprocessor is non-maskable?

  2. In 8086, example for non maskable interrupts is:

  3. For switching from a CPU user mode to the supervisor mode following type of interrupt is most appropriate

  4. Which of the following is an interrupt according to temporal relationship with system clock ?

  5. System calls are usually invoked by using :

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App