lkml.org 
[lkml]   [2000]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SCO: "thread creation is about a thousand times faster than on


On Mon, 28 Aug 2000, Martin MaD Douda wrote:
>
> And what will be done, when thread-group leader (tgig==pid) will exec() ?
> If I read your core correctly, it will be de_threaded by seting tgid=pid,
> but it was before! So the process will _not_ be removed from thread group.
> and it will remain in thread group _after_ exec.

No.

It actually gets removed from the process group list and thus the common
signal case.

But yes, it will continue to have the same id, though, which is basically
why the traditional notion of process groups have the notion of "orphans".
Which I don't think is necessary in this case: it's easier to just say
"this is what happens, are you sure you want to do that, then?".

Note that _pthreads_ would never know, because under a pthreads emulation
layer the thread group leader would never be seen as a "real thread"
anyway. So even if we'd extend the notion of execve() into pthreads, this
would never show up.

Linus

-
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.065 / U:1.792 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site