http://www.perlmonks.org?node_id=1082134


in reply to How to use multithreading in perl?

Hi, I am C++ developer and now learning and implementing multithreading in perl. But i found most of the examples jsut tell the basics only. Any real working example solving a pblm will help me a lot. Thanks

Hi. I am Perl developer and now learning and implementing multi-threading in C++. Any real working example solving a pblm will help me a lot.

My point: What kind of problem are you seeking to tackle?

Because if you are expecting that any single example of threading in Perl is going to show you everything; you're sh*t outta luck.

Multi-threading an IO-bound problem requires a completely different approach to multi-threading a CPU-bound problem.

An 'embarrassingly parallel' task might be trivial to implement in Perl, if the dataset easily partitions vertically; however, it might be nearly impossible to code efficiently if the only way to partition the dataset is horizontally.

If you can define your actual problem in clear and concise terms; providing sufficient information, clear and unambiguous estimates of scale; and real(istic) data samples; and an idea of where you are having problems in coding a solution; then we may be able to begin making suggestions for your direction.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.