check for proper creation of pthreads