"Detaching" Threads
int pthread_detach(pthread_t tid);
threads are either joinable or detachable
if a thread is detached, its termination cannot be tracked with pthread_join() … it becomes a daemon thread
pthread_t pthread_self(void);
returns the thread ID of the thread which calls it
often will see pthread_detach(pthread_self())