From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 7 22:37:06 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8C8F816A400 for ; Wed, 7 Feb 2007 22:37:06 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.freebsd.org (Postfix) with ESMTP id 6CFA013C441 for ; Wed, 7 Feb 2007 22:37:06 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn08.u.washington.edu (hymn08.u.washington.edu [140.142.13.238]) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l17Mb53i018487 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 7 Feb 2007 14:37:06 -0800 Received: from localhost (localhost [127.0.0.1]) by hymn08.u.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l17Mb5Kc008477 for ; Wed, 7 Feb 2007 14:37:05 -0800 X-Auth-Received: from [192.55.52.4] by hymn08.u.washington.edu via HTTP; Wed, 07 Feb 2007 14:37:05 PST Date: Wed, 7 Feb 2007 14:37:05 -0800 (PST) From: youshi10@u.washington.edu To: freebsd-hackers@freebsd.org In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.2.7.141933 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='NO_REAL_NAME 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: Trying to join an already exited pthread X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Feb 2007 22:37:06 -0000 On Wed, 7 Feb 2007, Pietro Cerutti wrote: > On 2/7/07, youshi10@u.washington.edu wrote: >> Just wondering: >> >> If I was to try and join a pthread that already exited, would there be an >> error message output and/or errno set to an error value, or would a system >> hang? > > man pthread_join(3): > > ERRORS > The pthread_join() function will fail if: > [EINVAL] The implementation has detected that the value speci- > fied by thread does not refer to a joinable thread. > > A pthread that already exited is considered non-joinable > >> It this variable on Unix OSes? > > > The pthread_join() function conforms to ISO/IEC 9945-1:1996 > (``POSIX.1''). Excellent. Thank you very much for the info! -Garrett