Detached vs. Joinable POSIX threads

Create a detached thread when you know you won’t want to wait for it with pthread_join(). The only performance benefit is that when a detached thread terminates, its resources can be released immediately instead of having to wait for the thread to be joined before the resources can be released. It is ‘legal’ not to … Read more