COM310
Chapter 3: Processes
Creating processes
Tracing fork()
:
walkthrough
and
code
Two forks, four processes
:
walkthrough
and
code
The print buffer and fork()
:
walkthrough
and
code
exit() and wait()
:
walkthrough
and
code
exec() replaces the program
:
walkthrough
and
code
fork() then exec()
:
walkthrough
and
code
A tiny shell
:
walkthrough
and
code
Interprocess communication
Shared memory
:
walkthrough
and
code
Producer and consumer with an unbounded buffer
:
walkthrough
and
code
Producer and consumer with a bounded buffer
:
walkthrough
and
code
Message passing with a pipe
:
walkthrough
and
code