OS & Hardware

Which is the usual distinction between interrupts and exceptions?

  1. AInterrupts are raised only by software, while exceptions are raised only by hardware circuits
  2. BInterrupts come from external causes such as devices; exceptions result from executing an instruction
  3. CInterrupts can never return to the interrupted work, while exceptions always can
Show answer and explanation

Answer: B. Interrupts come from external causes such as devices; exceptions result from executing an instruction

Interrupts are caused by external events unrelated to the instruction being executed, such as I/O completion or a timer, and can arrive at any time (asynchronous). Exceptions result from executing a particular instruction, such as division by zero, an illegal instruction, a page fault or a system-call instruction (synchronous). Both are usually handled and then return to the interrupted work, so returnability is not the distinction.

  • A. Dividing them by software versus hardware source is incorrect.
  • B. Correct. Asynchronous external interrupts versus synchronous instruction-caused exceptions.
  • C. Both usually return afterward; returnability is not the distinction.
Practice this topic Back to topic

More OS & Hardware questions

  1. Which of the following is asynchronous, occurring at unpredictable times unrelated to the instruction being executed?
  2. What is the usual sequence when a CPU accepts an interrupt?
  3. What is the role of an interrupt vector table?
  4. What should you keep in mind when temporarily disabling (masking) interrupts during a critical section?
  5. Why is interrupt handling split into a short part done immediately and the remainder done later in a normal context?