[626] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Re: join on any thread question

daemon@ATHENA.MIT.EDU (Greg Hudson)
Thu Apr 10 00:34:02 1997

To: Mike Butterbrodt <MikeB@Postalsoft.com>
Cc: "'Pthreads Mail Archive'" <pthreads@MIT.EDU>
In-Reply-To: Your message of "Wed, 09 Apr 1997 17:02:24 CDT."
             <c=US%a=_%p=Firstlogic_Inc.%l=EXCHANGE_LAX1-970409220224Z-2395@exchange-lax1.mail.postalsoft.com> 
Date: Thu, 10 Apr 1997 00:26:32 EDT
From: Greg Hudson <ghudson@MIT.EDU>

> In Solaris threads, and NT threads I can join on any thread.  The
> pthread_join() does not allow this.  Is there simple solution to
> obtain this functionality using Pthreads?

POSIX threads intentionally do not allow such an operation; if you
allow "join on any thread," then all thread IDs are effectively
exposed to the entire application, and it becomes impossible to, for
instance, use threads in a library without fear of interference by the
application.  You need to create a status vector protected by a
condition-mutex pair to do what you want.

home help back first fref pref prev next nref lref last post