lkml.org 
[lkml]   [2000]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: thread group comments
On Fri, Sep 01, 2000 at 06:00:58PM -0700, Linus Torvalds wrote:
>
>
> On 1 Sep 2000, Ulrich Drepper wrote:
>
> > "Andi Kleen" <ak@suse.de> writes:
> >
> > > I've been thinking about how to best get rid of the thread manager for
> > > thread creation in LinuxThreads. It is currently needed to do the wait.
> >
> > If you get rid of the manager thread (the +1 thread) then you have
> > another problem: you cannot send a signal explicitly to this thread
> > (to implement pthread_kill). The PID of this initial thread is now
> > used as the PID of the thread group.
>
> Well, that can be solved by having a separate "threadkill()" system call.
>
> But I'd much rather just have the "n+1" thing. The overhead is basically
> nonexistent, and it simplifies so many things.

But I guess you don't want the context switch to a thread manager just to
generate a thread ? (and which is one of the main causes of the bad thread
creation latency in Linux currently)

-Andi

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

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