Course 149 - Fall 1997 Assignment 3 (1) Look at Problem 5 at the web location http://www.math.mu.edu/~wimr/Spring97/149/ at Homework 5 and its Answer 5. It discusses forking through three examples. (2) This time we are going to combine forking with execve, program overlay. The combination of forking and overlay is used to create the multiple processes that one finds running on the computer. (3) Look up fork and execve using the man pages (man fork or man execve). (4) Here is the simple assignment combining forking and execve. Create two programs, called pr.out and ch.out (compiled from C programs). The first program, pr.out, announces that it starts running. Then it creates a child that turns into ch.out. Finally, pr.out comments that it will finish, and stops. The program ch.out in turn prints to the screen that it is alive, and stops. (5) Email your programs pr.C and ch.C to me once they work. Due date: 3 November 1997.