Can't... get it... to work...

I tried as you suggested...

hartman@ds0207:~/Desktop/misc/idealoSubversionArena/parallelListProces +sing> ./testpq.pl Can't locate object method "new" via package "Threads" (perhaps you fo +rgot to load "Threads"?) at /usr/lib/perl5/site_perl/5.8.8/Parallel/Q +ueue.pm line 197. hartman@ds0207:~/Desktop/misc/idealoSubversionArena/parallelListProces +sing> head testpq.pl #!/usr/bin/perl use threads::shared; use Parallel::Queue 'thread'; print concatenate_parallel( ['a' .. 'z'], 4 ) . "\n"; sub concatenate_parallel { my $result :shared; my @input = map { my $string = $_;

Also tried other permutations with spelling variations, but I feel like I'm stumblinb around in the dark. Parallel::Queue indicates that forking works, but threading is "still in progress".

Are you able to run this code?

I am really keen to make progress on this, because I am hoping to use this as a basis for threadedreduce which would serve as an abstraction layer for all sorts of list processing that could potentially be speeded up by using threading, but without changing anything in the "meat" of the program (which would be a function builder that uses threadedreduce or nonthreadedreduce, each having the same effect).

See

Could there be ThreadedMapReduce (and/or ForkedMapReduce) instead of DistributedMapReduce?

and my followup, with threadedreduce stub code, at Re^2: Could there be a ThreadedMapReduce (instead of DistributedMapReduce)?


In reply to Re^4: using parallel processing to concatenate a string, where order of concatenation doesn't matter by tphyahoo
in thread using parallel processing to concatenate a string, where order of concatenation doesn't matter by tphyahoo

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.