Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Wanting some clarification / opinions on MCE vs Threadsby jmmitc06 (Beadle) |
on Feb 05, 2015 at 07:27 UTC ( [id://1115612]=perlquestion: print w/replies, xml ) | Need Help?? |
jmmitc06 has asked for the wisdom of the Perl Monks concerning the following question: I frequently use multi-processing in Perl for the scripts I write at work. I have always used the threads and Threads::Queue module for these scripts. I have been finding references to the many core engine (MCE) online and in the monastery but I'm still not sure when it is best to use MCE or Threads or some other form of multiprocessing. From what I have gathered, MCE uses the Thread module if it is installed and can also fork processes. Is MCE just a more automated way of implementing multi-processed jobs than explicitly writing code using threads or does it do unique things that threads cannot? I assume that since MCE can use threads to do that multiprocessing voodoo it does so well, that there is not a significant performance penalty for using MCE? It does seem that MCE code is more readable than the equivalent threads code which is already a big plus. In short, I would love some input on MCE as a whole and how it compares to threads. Would it be good practice to start using MCE instead of threads?
Back to
Seekers of Perl Wisdom
|
|