Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: perl multithreading

by chrism01 (Friar)
on May 15, 2007 at 06:34 UTC ( [id://615471]=note: print w/replies, xml ) Need Help??


in reply to perl multithreading

Well, here is the std Perl threads tutorial http://perldoc.perl.org/perlthrtut.html .
And more MS specific http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/lib/threads.html as you'll prob be using ActiveState Perl.

I've only ever used it on Linux & Solaris, but it works fine.
You just have to be careful, especially if you've never used threads before.
Note that if you want a multi-level variable eg HoH... to be thread shared, you have to explicitly share each level as it's created.
Something I learnt from BrowserUK.
Anyway, as usual, feel free to ask qns.
It's true that officially it's not prod ready as some (or more) modules are not guaranteed 'thread-safe'. However, there are many threaded perl progs running in production.

Cheers
Chris

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-24 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found