CS311: Add pthread and shmem examples.