Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by Corion (Patriarch)
on Nov 17, 2015 at 08:34 UTC ( #1147894=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1147894]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2022-12-08 23:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?