in reply to
Re: forks for running multiple codes at same time
in thread forks for running multiple codes at same time
This is untrue.
This is only true for Win32, where the fork() call doesn't even really exists (it's poorly faked using threads), on every other platform fork() costs almost the same, and provides many valuable additional benefits (like better memory protection, better management etc etc)
Not to mention, he's spawning only 5 (count'em - five) processes, what would be cummulative gain on that, even on win32?