Since you need to load a new executable, why not just start it in a new process rather than duplicating the current one first?

Well, I was thinking about Unix systems where calling fork & exec is the standard (and sometimes only) way to start a new process. On Windows, you are right, it will be quite inefficient.


In reply to Re^6: forks for running multiple codes at same time by salva
in thread forks for running multiple codes at same time by adamquestion

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":