Use pthread_detach() instead of calling pthread_join() later