Outline:
- Shells and
fork
, revisited
fork
overview
- example:
forktest.c
- implementing the main loop via
fork
, execvp
, and wait
- examples:
- File descriptors
- Caution: avoid “fork bombs”
- Lab 7: getting started with processes—let’s explore some samples for Assignment #7
Reading assignment (to be completed by the next class):
- Manual pages (e.g., type
man <cmd>
, replacing <cmd>
, in a terminal) for:
fork
wait
execlp
execvp
signal
- Bryant & O’Halloran Sec. 8.4 (p. 738–756) – read this again if it is no longer fresh; it’s handy for your assignment!