2025-04-11

Computer Systems - A Programmer's Perspective

Table of Contents

1. Optimizing Performance

2. Exceptional Control Flow

Table 1: Type of Exceptions and their differences (Figure 8.4 of the Book)
Class Cause Async/Sync Return Behaviour
Interrupt Signal from I/O Device Async Return to next instruction
Trap Intentional Exceptional Sync Return to next instruction
Fault Potentially recoverable error Sync Might return to current instruction
Abort Nonrecoverable error Sync Never returns

Async mean the execption are not caused by the execution of any particular instruction.

Interrupt:

  • Clock
  • I/O

Trap:

  • Syscall

Fault:

  • Division by zero
  • Page fault

Abort:

  • Parity error in DRAM, SRAM

You can send your feedback, queries here