[Bug 1731] pthread_join() returns ESRCH if target thread already terminated
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Thu May 26 08:41:48 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1731
--- Comment #8 from Frederic Brault <frederic.brault at kalray.eu> 2011-05-26 03:41:42 CDT ---
I did some more googling to try to understand the issue.
First, there has been a similar discussion on FreeBSD mailing-list. It might be
of interest :
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/hackers/2007-02/msg00068.html
I also read The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004
Edition, and more specifically chapter 2.9 (Threads). It is available at
http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html
About Thread ID (2.9.2), I read :
"A conforming implementation is free to reuse a thread ID after the thread
terminates if it was created with the detachstate attribute set to
PTHREAD_CREATE_DETACHED or if pthread_detach() or pthread_join() has been
called for that thread."
To me, this gives credit to the hypothesis that that the lifetime of a Joinable
thread (the default state) lasts until it is joined or detached.
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list