http://qs1969.pair.com?node_id=1147894


in reply to Re^4: How can I limit the number of Cores in multi-process programming
in thread How can I limit the number of Cores in multi-process programming

Have you had a look at Parallel::ForkManager? It can be easily used to move from unbounded fork() to running with a limited number of children.

  • Comment on Re^5: How can I limit the number of Cores in multi-process programming

Replies are listed 'Best First'.
Re^6: How can I limit the number of Cores in multi-process programming
by milesjin (Initiate) on Nov 17, 2015 at 08:49 UTC

    Hi Corion,

    Thanks. Yes, I have checked the Parallel::ForkManager. Parallel::ForkManager is good enough for my taks. It can limit the number of processes, not CPU cores.