The stupid question is the question not asked | |
PerlMonks |
Re^5: forks for running multiple codes at same timeby BrowserUk (Patriarch) |
on Feb 09, 2009 at 10:29 UTC ( [id://742388]=note: print w/replies, xml ) | Need Help?? |
forking, and then calling system to run the command, means he's forking twice for every command. Maybe 3 times depending what's in $command. You can achieve the goal without threads on win32 like this:
Since you need to load a new executable, why not just start it in a new process rather than duplicating the current one first? Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|