Which of the following is true regarding interrupts in microprocessors?
17 views
- Interrupts are always prioritized based on their source.
- The microprocessor cannot handle multiple interrupts simultaneously.
- An interrupt can be disabled by writing a 1 to the corresponding interrupt enable bit.
- The microprocessor always completes the current instruction before servicing an interrupt. (Correct Answer)
Explanation
Correct answer: d) The microprocessor always completes the current instruction before servicing an interrupt.
Explanation: When an interrupt occurs, the microprocessor first completes the current instruction before servicing the interrupt. This ensures that the current state of the system is not lost and can be resumed after the interrupt is serviced. Options a) and b) are not always true, as some interrupt schemes may have non-priority interrupts and allow multiple interrupts to be serviced simultaneously. Option c) is partially true, as an interrupt can be disabled by writing a 0 to the corresponding interrupt enable bit.