Howdy Monks,

I've just gotten the opportunity to move a large number of scripts from a dual processor Windows machine to a 28-processor IBM AIX box. This makes me happy.

But it also makes me a bit concerned: every Perl script I've written is single-threaded. While that seems wise for the various DBI work I've done, it might not be as reasonable for other things. In particular, I have a large number of parsers. Most are object-mode stream-parsers like the BioPerl library or various XML-parsers.

Is it possible or practical to multi-thread these? Is there some other way I can take advantage of the sudden bevy of CPU power I have available to speed up these very slow parsers (very slow = 3+ hours).


In reply to Multithreading Parsers by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.