Playing around with the pthreads api