thread Thread whose termination is awaited by the calling routine. value_ptr Return value of the terminating thread (when that thread either calls pthread_exit() or returns from its start routine).