Update pthreadFuns.cpp