pthread_join and pthread_detach

less than 1 minute read

Either pthread_join(3) or pthread_detach() should be called for each thread that an application creates, so that system resources for the thread can be released. (But note that the resources of all threads are freed when the process terminates.)

更多的解釋: []

Tags: ,


Leave a Comment