As suggested, you have 2 options:
* 'require' modules dynamically in the child process
* 'exec' completely different program
In either case the performance hit of recompiling the code (required module/executed code) after each fork will be huge compared to just loading everything in the parent and forking afterwards
In reply to Re: Fork and multiple subs
by karavelov
in thread Fork and multiple subs
by msalerno
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |