CS 284 Operating Systems
Programming Assignment #3

Due: 9/5/2001 - Class Time

Write a C program that performs a printf(..) describing all significant events during the execution of the following outline:
int main()

  1. what is my pid and my parent's pid
  2. fork() - was it successful?
  3. the new child process should
  4. the parent should announce the creation of a child process
  5. tell the child's pid
  6. waitpid(.., .., ..) for the child to die
  7. announce the child's death
  8. exit or return
    =================================================================

You will use the 'script' command to capture all necessary information for handin.