The pthread_detach() documentation says:
The
pthread_detach()function shall indicate to the implementation that storage for the thread thread can be reclaimed when that thread terminates.
What is the consequence if I create a joinable thread and do not detach or join it? The resources of that thread are not going to be reclaimed?