how to run c file with pthreads