[Hands-On System Programming with Linux] #include <pthread.h> int pthread_join(pthread_t thread, void **retval);