[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]

Re: :zz: If we fork a zz process, is the binary copied?



On Wed, Mar 31, 1999 at 12:54:50AM +0900, Ted Nelson wrote:
> ... or is it the Perl source?
> 
> It would scarcely make sense to recompile the Perl
>  for each new instance.

That's correct.  If you do a Unix fork system call, the entire RAM image
of the running process (which is Perl in this case) is virtually copied.
(The actual pages in RAM are only copied when written to.)  Therefore
the code being executed by Perl is not recompiled.

Cheers,
	*** Xanni ***
-- 
mailto:xanni@xxxxxxxxxx                         Andrew Pam
http://www.xanadu.com.au/                       Chief Scientist, Xanadu
http://www.glasswings.com.au/                   Technical Editor, Glass Wings
http://www.sericyb.com.au/sc/                   Manager, Serious Cybernetics
P.O. Box 26, East Melbourne VIC 8002 Australia  Phone +61 3 96511511