This is not the current version of the class.

Processes 2: Primary process system calls


In this lecture, we finish our discussion of the primary process control system calls, then discuss inter-process communication, including termination notification and stream communication.

Full lecture notesTextbook readings

Primary process control system calls

fork vs. execvp

Putting them together: processex

fork: Which runs first?

The uniq utility

Again: fork: Which runs first?

Voluntary termination: Exit

Speed of exit notification

Involuntary termination

Collecting a termination notification


pid_t p1 = getpid();
pid_t p2 = getppid();
pid_t p3 = fork();
pid_t p4 = getpid();
pid_t p5 = getppid();

Some answers