Which of the following is a disadvantage of using interrupts?
17 views
- Interrupts can improve system performance by reducing the need for polling
- Interrupts can introduce unpredictable delays in program execution (Correct Answer)
- Interrupts can simplify programming by eliminating the need for explicit I/O operations
- Interrupts can be used to transfer data between devices connected to a computer
Explanation
Correct answer: b) Interrupts can introduce unpredictable delays in program execution
Explanation: One disadvantage of using interrupts is that they can introduce unpredictable delays in program execution. When an interrupt occurs, the CPU stops its current execution and jumps to the ISR, which can take some time to complete. This can lead to unpredictable delays in the normal flow of a program and can make program debugging more difficult.