int pthread_join(pthread_t tid, void **status);Waits for the thread to terminate,
tidis the thread to wait forstatusif notNULLreturns thevoid*returned by the thread when it terminates- Returns 0 on success, error number on error
int pthread_join(pthread_t tid, void **status);Waits for the thread to terminate,
tid is the thread to wait forstatus if not NULL returns the void* returned by the thread when it terminates