in reply to Fork and creating a thread exits the process
If you're merely looking for a better programming interface to fork so that you're not tempted to mix "threads" with "fork", then take a look at Parallel::ForkManager.
If you need low latency communication among child processes or between parent/child (via fork), use something like redis as the middleware. It is unfortunate communication using shared memory isn't possible natively in perl, but that's a whole other issue.
|
|---|