Other approaches
We spent the class period looking at three simple parallel examples:
- A C program that uses Unix system calls to manage semaphores,
shared memory segments, and multiple processes (via fork()).
- A C program that uses the Posix threads API.
- A Java program that uses threads.