Pthreads, Semaphores, Mutexes!