xxxxxxxxxx
//int pthread_join(pthread_t thread, void **retval);
/*Example :*/
pthread_join(thread, NULL);
xxxxxxxxxx
/*
The pthread_join() function shall suspend execution of the calling thread until the target thread terminates,
unless the target thread has already terminated.
*/
#include <pthread.h>
int pthread_join(pthread_t thread, void **value_ptr);