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, Aug 28, 2000 at 10:45:55PM +0100, Alan Cox wrote:
> > In the POSIX spec fork demolishes all threads in the child. This is the
> > only sensible answer and it seems wasteful to ignore the rare sensible
> > parts of the POSIX spec. I think exec should do the same thing: calling
> > thread should die and be replaced by a thread/process that is not in the
> > thread group since it no longer shares memory.
>
> It isnt a sensible answer. Think about a threaded web server firing off
> cgi scripts. You should probably kill those with the same mm. Especially if
> you have an unclone(CLONE_MM) since you can then unshare the VM for a thread
> and exec stuff off it

I don't get it. Why is
fork child to execv interpreter

worse than
pthread_create == clone;
unclone
execv interpreter
?

>

--
---------------------------------------------------------
Victor Yodaiken
Finite State Machine Labs: The RTLinux Company.
www.fsmlabs.com www.rtlinux.com

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