in reply to Multi-thread combining the results together

Hi Marshall,

When you think parallel Perl, think MCE! It's easy to distribute work among child workers that all write to a shared data structure!

Here is an example I shared some time ago that could easily be adapted to your case: Re^2: (Easy Perl concurrency with MCE), although the latest version of MCE includes MCE::Channel which according to Mario is more suited for queue-like work.

Hope this helps!


The way forward always starts with a minimal test.
  • Comment on Re: Multi-thread combining the results together