Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: How to use multithreading in perl?

by BrowserUk (Pope)
on Apr 13, 2014 at 00:50 UTC ( #1082134=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1082134]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2016-10-28 20:23 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (387 votes). Check out past polls.