At 11:58 AM -0700 7/16/03, Rich Morin wrote:
At 7:26 AM +0100 7/16/03, David Cantrell wrote:
If you fork() you avoid both that overhead and the overhead of
compiling your code to bytecode. And while you can't nice a process
that you are forking off, you could do something like system("renice
$niceness -p $$") in the new process.
Interesting. The fork(2) man page seems to indicate that forking a
process makes a complete copy of it. Is this actually the case or is
this some sort of lazy (e.g., copy on write) equivalent?
It's a lazy copy, with the MMU hardware providing the COW needed.
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk