CMPSCI 377: Operating Systems
Discussion 2: System Calls


Reminders:

  1. TA Office hours are at 1:15-2:15 on Monday and 2:30-3:30 on Friday.
  2. Remember to submit your Lab0 to moodle no later than Tuesday afternoon.

Links:

  1. Slides from discussion: slides.pdf
  2. Discussion questions and solutions
  3. Code to the C fork program which we will walk through: fork1.c and fork2.c.

    In fact, using a combination of fork and exec is how most command line shells (e.g., Bash) are implemented. See this page for a good reference on Unix system calls - in particular, I'd recommend reading the (very brief) section on fork and wait. Just following those sections is an example of implementing a simple shell program using fork, exec, and wait.