在线程的所有属性中,最重要的是分离属性(detach status),一个线程可以是等待线程(joinable thread)or分离线程(detach thread),默认是joinable thread;
基于12个网页-相关网页
Thread bodies consist of active running threads and dead joinable threads.
线程体包括运行的活动线程和可接合的死线程。
The thread resources of the joinable thread are released only after it is joined.
可连接的线程只有在被连接后 才释放线程资源。
You can fix the leak by adding code to call pthread_join , which joins each joinable thread.
要修复泄漏,您可以添加代码调用pthread_join,该方法可联接每个可接合线程。
应用推荐