|
|
| No such thing as a small change | |
| PerlMonks |
Re: To Fork or Not to Fork. Tis a question for PerlMonksby Preceptor (Deacon) |
| on Jul 01, 2014 at 10:12 UTC ( [id://1091823]=note: print w/replies, xml ) | Need Help?? |
|
Depends what the forked code does. CPUs and memory as a rule are way faster than disk IO. If there's a lot of processing to be done, forking (or threading) means grabbing more processors. If you're IO bound, then it probably won't help much - any gains are offset against contention.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||