Multithreading Solaris thr_连接与posix pthread_连接

Multithreading Solaris thr_连接与posix pthread_连接,multithreading,pthreads,solaris-10,pthread-join,g++4.9,Multithreading,Pthreads,Solaris 10,Pthread Join,G++4.9,在Solaris中,thr_join文档说明了以下内容: int thr_join(thread_t thread, thread_t *departed, void **status); If the target thread ID is 0, thr_join() finds and returns the status of a terminated undetached thread in the process. POSIXpthread\u j

在Solaris中,thr_join文档说明了以下内容:

int  thr_join(thread_t  thread,  thread_t  *departed,   void
     **status);
If the target thread ID is  0, thr_join() finds and  returns
     the status of a terminated undetached thread in the process.
POSIX
pthread\u join
是否等效

 int pthread_join(pthread_t thread, void **status);
挂起调用线程的处理,直到目标线程完成 在thr_join的情况下,当我想知道多个线程中哪个子线程已经终止时,如何使用pthread_join。 还有其他选择吗? 换句话说,如果父线程产生了N个子线程,那么父线程如何通过轮询或其他方式知道哪个线程已退出/终止

POSIX
pthread\u join
是否等效

 int pthread_join(pthread_t thread, void **status);
是的,相当于。好吧,够近了。你可以:

它们甚至使用相同的内部函数实现

但您不想使用Solaris线程。只需使用POSIX线程

POSIX
pthread\u join
是否等效

 int pthread_join(pthread_t thread, void **status);
是的,相当于。好吧,够近了。你可以:

它们甚至使用相同的内部函数实现

但您不想使用Solaris线程。只需使用POSIX线程