H
howa
Sometimes, I want to take the advantage of multi-core processor, and
make the full use of my CPU time,
e.g. I have a function, which takes a file name as input, do some text
processing (e.g. CPU intensive), and save it back.
I don't want to use thread, as it need to recompile perl on all my
machines and I am not sure if it is stable enough to affect other
apps.
I don't mind to have a little overhead in using the fork mode (i.e.
multi-process). I want to know are there any recommended module for
my purpose?
For example, I am trying Parallel::ForkManager, POE::Wheel::Run, so
anyone want to share the experiences?
Thanks.
make the full use of my CPU time,
e.g. I have a function, which takes a file name as input, do some text
processing (e.g. CPU intensive), and save it back.
I don't want to use thread, as it need to recompile perl on all my
machines and I am not sure if it is stable enough to affect other
apps.
I don't mind to have a little overhead in using the fork mode (i.e.
multi-process). I want to know are there any recommended module for
my purpose?
For example, I am trying Parallel::ForkManager, POE::Wheel::Run, so
anyone want to share the experiences?
Thanks.