Given below are three statements related to interrupt handling mechanism A.…
2021
Given below are three statements related to interrupt handling mechanism
A. Interrupt handler routine is not stored at a fixed address in the memory.
B. CPU hardware has a dedicated wire called the interrupt request line used for handling interrupts
C. Interrupt vector contains the memory addresses for speciaized interrupt handlers.
In the context of above statements, choose the correct answer from the options given below:
- A.
A is TRUE only
- B.
Both B and C are TRUE only
- C.
Both A and B are TRUE only
- D.
Both A, C are TRUE only
Attempted by 224 students.
Show answer & explanation
Correct answer: B
Answer: The statements that the CPU has a dedicated interrupt request line and that the interrupt vector contains handler addresses are true; the claim that the interrupt handler is not stored at a fixed address is false.
Why the claim that the handler is not stored at a fixed address is false: Many interrupt systems use an interrupt vector or table at a known location in memory. This vector contains addresses or pointers used to locate the specific handler routines. Handlers themselves may reside anywhere in memory, but they are referenced via fixed vector entries, so saying handlers are not stored at fixed addresses is misleading and generally considered false in this context.
Why the CPU having a dedicated interrupt request line is true: CPU hardware commonly includes one or more interrupt request lines (for example INTR, NMI) used to signal the processor that an interrupt needs service.
Why the interrupt vector containing handler addresses is true: An interrupt vector or table stores the memory addresses or pointers of the specialized interrupt handlers so the processor can jump to the correct service routine when an interrupt occurs.
A video solution is available for this question — log in and enroll to watch it.