Hi. In Solaris you can use Solaris's thread routines like thr_join. thr_join
is a very useful routine in that it can wait for any of you applications
created thread, and when one of you threads exit, thr_join lets go and it
tells you which thread that exited. This is a very easy way to catch thread
exits and to be able to take appropriate action depending of which thread
that exited.
I want to do the same thing in Linux, but I haven't been able to do so. The
Posix version of joining a thread is pthread_join, which can only wait for 1
specific thread, you give the thread id as an argument to pthread_join.
The Solaris version is much more useful (at least for me:-)
Anyone has an idea of how I can either get a work-around, or if there is
some other library I can use ?
I run RedHat 7.1 ,using gcc 2.96
Thanx
/ZoombyWoof