3 ms·
Yes, this. Threads are not a resource to be monitored and managed; processes are. Similar wisdom hides in the pthread_join(3) man page: There is no pthre
by colanderman 11y ago
Yes, this. Threads are not a resource to be monitored and managed; processes are.
Similar wisdom hides in the pthread_join(3) man page:
There is no pthreads analog of waitpid(-1, &status, 0), that is, "join
with any terminated thread". If you believe you need this functional‐
ity, you probably need to rethink your application design.