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

milesjin has asked for the wisdom of the Perl Monks concerning the following question:

Hi expert,

I am using fork() to parallelize my perl script. I hope my perl script can run faster, however it should not eat up all the CPU resouce. I understand I can achieve it indirectly by limiting the number of child processes. Apart from this, do we have better way to limit my program to a number of CPU cores? Let's say my program should use less than 4 cores, but it may have totally 6 processes?

Thanks in advance.