1. Exceptional Control Flow p501

<aside> ℹ️ Definition: Mechanisms that change the normal flow of program execution

2. Exceptions p502

Exception Types p504

Type Reason Async/Sync Return Action Examples
Interrupt External I/O device signal Async Return to $I_\text{next}$ Ctrl-C (I/O interrupt)
Trap Intentional Sync Return to $I_\text{next}$ Syscall, breakpoints
Fault Potentially recoverable errors Sync May Return to $I_\text{next}$ Page Fault
Abort Unrecoverable errors Sync Won’t return Parity errors

System Calls p507

Unique ID Number Name Description
0 read Read File
1 write Write File
2 open Open File
3 close Close File
4 Stat Get info about file
57 fork Create process (clone of all instructions below fork())
59 execve Execute a program
60 _exit Terminate process
62 kill Send signal to process

Understanding fork()

Faults

3. Processes p508

<aside> ℹ️ Basics


Context Switches

  1. Save current states in memory
  2. Schedule next process for execution