Once a detached thread has terminated, its resources, including the thread ID, may be reused
pthread_detach() — mark a thread as detached to reclaim its resources when it terminates
SYNOPSIS
#include <pthread.h>
int pthread_detach( pthread_t thread );
PARAMETERS