Lesson 24: The Process of Multitasking

Outline:

  1. File descriptors
  2. Processes
    • Unix process model abstraction
    • syscalls, context switches, and scheduling
    • a note on terminology
    • fork, wait, and exit
    • example: forktest.c

Explore after class:

  1. Lab 8: Getting started with processes
  2. Shell-related example code

Want more practice with fork?

  1. DiS exercises

Reading assignment (to be completed by the next class):

Additional exploration:

  • Manual pages (e.g., type man <cmd>, replacing <cmd>, in a terminal) for:
    • fork
    • wait
    • execlp
    • execvp
    • signal