If I use one instance of Perl and fork off a number of child processes instead of running multiple instances of Perl, will that change the priority for the forked processes, or will they likely get the same kind of treatment or CPU time as they would have if I ran them as separate processes?Note that on a Unix system, after the system has initialized itself, the kernel starts a single process, typically called init. Every other process started since saw light using fork. If you run "separate processes", it's fork (followed by exec) that creates those processes.
So, there's no difference in the priority new instances will have.
In reply to Re: Forking vs. A New Process
by JavaFan
in thread Forking vs. A New Process
by HalNineThousand
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |