lkml.org 
[lkml]   [2002]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: CLONE_DETACHED and exit notification (was user-vm-unlock-2.5.31-A2)

On Fri, 16 Aug 2002, Linus Torvalds wrote:

> > having looked at threading libraries i can tell you that any library
> > writer who cares about performance would use a futex for exit
> > notification.
>
> Oh, good. If it turns out that even pthreads wants the futex, [...]

yes, pthreads used a futex for this ever since. This is what i was arguing
for all along, and this is why pthreads does not want any SIGCHLD
internally, ever. This is why i sent the patch that ended up being
CLONE_DETACHED. No signal notification is needed, everything can be done
via futexes. And all the 'unsafe exit' arguments are bogus...

merging futex release into exit() removes one more extra syscall, and
removes the need for having a thread-state-usage spinlock (of sorts). So
from the pthreads point of view the interface couldnt be nicer.

> [...] let's just do it that way. Pls send in a patch once you have
> something tested ready, ok?

okay.

Ingo

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.136 / U:6.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site