[Purdue-pm] Parallel loops

Joe Kline gizmo at purdue.edu
Mon Jun 11 07:30:16 PDT 2012

Hash: SHA1

On 06/11/2012 10:01 AM, Dave Jacoby wrote:
> On 6/11/2012 9:14 AM, Joe Kline wrote:
>> I had one program that did some stuff in parallel but I used something
>> else to parallelize it but this looks much simpler.
> I've always found it hard to think in multithread terms, but now that
> multicore PCs come free in your children's Happy Meals, it is about time
> we as a community (all programmers, not just Perl programmers or Purdue
> programmers or Purdue Perl programmers) come to terms with it.

And things like this make it a lot easier, not quite for "free" like in
things like MPI, but better.

I found my one program that did threaded stuff.

The modules it uses:


threads is core and basically hands off the stuff to the OS to deal with

I needed Thread::Queue because of how input/output works in threaded
stuff. It took me awhile to really understand how to make my (initially)
serial program and parallelize.

Not so simple.

Finding tools, like Parallel::Loops, to make hard jobs easy is what Perl
is all about I think.

It's just a matter of finding them and making sure it fits your job (the
second or third hard part in a job).

Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


More information about the Purdue-pm mailing list