in reply to Re^3: Fork vs pThreads
in thread Fork vs pThreads

Thank you :) I didn't realized that. It makes sense in term of cpu usage. But I still have the same problem right? If one of the 4 takes longer time to end, the mother still needs to wait for that to finish to be able to send another 4 right?

Replies are listed 'Best First'.
Re^5: Fork vs pThreads
by Corion (Patriarch) on Oct 21, 2013 at 15:02 UTC

    As far as I understand Parallel::ForkManager, it limits your program to maximum 4 children, but if one child ends, Parallel::ForkManager will launch the next child immediately.