Deckly
← Back
Deck
History

CPU Interrupts vs. Exceptions

A comparison of external interrupts and internal exceptions in CPU processing.

  • cpu
  • exceptions
  • interrupts
  • timing
  • asynchronous
  • sources
  • synchronous
  • devices
  • illegal operation
  • instruction
15 cards
Public

Flashcards in this deck (15)

#1
Basic

What is the primary difference in the source of external interrupts and internal exceptions?

Answer

External interrupts originate from outside the CPU, while internal exceptions originate from within the CPU during instruction execution.

#2
Basic

How does the relationship between an internal exception and the current instruction differ from that of an external interrupt?

Answer

Internal exceptions are synchronous, meaning they are directly caused by the current instruction. External interrupts are asynchronous and unrelated to the current instruction.

#3
Basic

When are external interrupts typically detected by the CPU?

Answer

External interrupts are typically detected after a single instruction has completed execution.

#4
Basic

When are internal exceptions typically detected by the CPU?

Answer

Internal exceptions are typically detected during the execution of an instruction.

#5
Cloze

External interrupts originate from {{c1::CPU external}} sources, whereas internal exceptions originate from {{c2::CPU internal}} sources.

Answer

#6
Cloze

An internal exception is {{c1::synchronous}} with the instruction that caused it, while an external interrupt is {{c2::asynchronous}}.

Answer

#7
Cloze

External interrupts are detected {{c1::after a single instruction execution is completed}}, while internal exceptions are detected {{c2::during instruction execution}}.

Answer

#8
Basic

List two typical sources of external interrupts.

Answer

Typical sources include the system clock and I/O devices.

#9
Basic

List two typical sources of internal exceptions.

Answer

Typical sources include illegal operations, address out-of-bounds errors, page faults, and system calls.

#10
MCQ

Which of the following best describes the timing of an external interrupt?

  1. 1. Synchronous with the instruction that caused it
  2. 2. Detected during the execution of an instruction
  3. 3. Asynchronous and unrelated to the current instruction
  4. 4. Only occurs when the CPU is idle
Answer

Which of the following best describes the timing of an external interrupt?

  1. Synchronous with the instruction that caused it
  2. Detected during the execution of an instruction
  3. ✓ Asynchronous and unrelated to the current instruction
  4. Only occurs when the CPU is idle
#11
MCQ

An 'illegal operation' during instruction execution is a common cause of what type of CPU event?

  1. 1. External Interrupt
  2. 2. System Call
  3. 3. Internal Exception
  4. 4. Timer Overflow
Answer

An 'illegal operation' during instruction execution is a common cause of what type of CPU event?

  1. External Interrupt
  2. System Call
  3. ✓ Internal Exception
  4. Timer Overflow
#12
MCQ

A page fault, which occurs when a program tries to access memory that is not currently loaded into RAM, is an example of:

  1. 1. An external interrupt
  2. 2. An asynchronous event
  3. 3. An internal exception
  4. 4. A clock signal
Answer

A page fault, which occurs when a program tries to access memory that is not currently loaded into RAM, is an example of:

  1. An external interrupt
  2. An asynchronous event
  3. ✓ An internal exception
  4. A clock signal
#13
Basic

What does it mean for an internal exception to be 'synchronous'?

Answer

It means the exception is directly caused by the specific instruction currently being executed.

#14
Basic

What does it mean for an external interrupt to be 'asynchronous'?

Answer

It means the interrupt is not tied to the current instruction being executed and can occur at any time.

#15
Basic

Give an example of an I/O device that might trigger an external interrupt.

Answer

A keyboard, network card, or disk drive could trigger an external interrupt when they have data ready or require attention.