thread join 螺纹联接
If you create a joinable thread but forget to join it, its resources or private memory are always kept in the process space and never reclaimed.
如果您创建一个可接合的线程,但是忘记联接它,其资源或私有内存一直保存在进程空间中,从未进行回收再利用。
Thanks to all who join the April Fool's thread, send emails, or posted info elsewhere!
感谢所有加入这个愚人节线程、发送电子邮件、或张贴信息到别处的人!
If they are joinable threads and you haven't called the pthread_join to join them, each produced thread will leak a sizeable amount of memory (at least 10mb per stack) after its termination.
如果它们是可接合的线程,且您没有调用pthread_join来联接它们,那么在线程终止后,每个产生的线程都将泄漏大量的内存(至少每堆栈10 MB)。
应用推荐