update pthreads.sh