By default, the new created is joinable.
默认情况下,新创建的线程是可接合的。
Joinable threads should be joined during programming.
在编程过程中应当联接可接合线程。
It creates new joinable threads ceaselessly until failure happens.
它不断创建新的可接合线程,直至有故障发生。
Thread bodies consist of active running threads and dead joinable threads.
线程体包括运行的活动线程和可接合的死线程。
Quorum resource is not joinable. A multi - node cluster can not be created.
无法加入仲裁资源。无法创建多节点群集。
The thread resources of the joinable thread are released only after it is joined.
可连接的线程只有在被连接后 才释放线程资源。
And most likely, such a memory leak is caused by a failure to join the joinable threads.
这种内存泄漏很有可能是因未能联接可接合线程而造成的。
The alphabet consists of 32 letters, most of which are joinable from left and right.
字母表共有32个字母组成,多数与其他字母左右相连。
Listing 1 shows the serious memory leak created if you forget to join joinable threads.
清单1显示在忘记联接可接合线程时引发的严重内存泄漏。
You can fix the leak by adding code to call pthread_join , which joins each joinable thread.
要修复泄漏,您可以添加代码调用pthread_join,该方法可联接每个可接合线程。
Let's start by reviewing POSIX threads, which can be either joinable threads or detached threads.
我们首先回顾一下POSIX线程,分为可接合线程或分离线程。
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.
如果您创建一个可接合的线程,但是忘记联接它,其资源或私有内存一直保存在进程空间中,从未进行回收再利用。
In joinable state, another thread can synchronize on the thread's termination and recover its termination code using the function pthread_join .
在可连接状态中,另一个线程可以同步这个线程的终止,使用函数pthread_join来重新获得其终止代码。
As demonstrated in Listing 1 and 2, joinable threads are produced, but they are never joined, so each terminated joinable thread still occupies the process space, leaking the process memory.
如清单1和清单2所示,虽然生成了可接合线程,但是却未将其联接,因此每个终止的可接合线程仍然占用进程空间,泄漏进程内存。
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来联接它们,那么在线程终止后,每个产生的线程都将泄漏大量的内存(至少每堆栈10MB)。
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来联接它们,那么在线程终止后,每个产生的线程都将泄漏大量的内存(至少每堆栈10MB)。
应用推荐