[lkml]   [2002]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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?



To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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