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?

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm    - my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series

Reply via email to