CS170 Lecture notes -- Putting the P in Pthreads