Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: What's the best way to fetch data from multiple sources asynchronously?

by NetWallah (Canon)
on Jan 01, 2007 at 19:19 UTC ( [id://592453]=note: print w/replies, xml ) Need Help??


in reply to What's the best way to fetch data from multiple sources asynchronously?

I have had excellent success with Thread and Thread::Queue.

Sample code at This node. (Original code was Win32, but success has been reported on Linux - there is no Windows-specific code in the script).

Update 1:I acknowledge my knowledge, and hence, this advice is now somewhat obsolete (although, it continues to work). Please see BrowserUk's advice below.
I believe the sample code would work with minimal modifications, using ithreads (threads) instead of Thread(Perl 5.5), since both modules are compatible with Thread::Queue. Details are in perlthrtut.

     "A closed mouth gathers no feet." --Unknown

  • Comment on Re: What's the best way to fetch data from multiple sources asynchronously?

Replies are listed 'Best First'.
Re^2: What's the best way to fetch data from multiple sources asynchronously?
by BrowserUk (Patriarch) on Jan 01, 2007 at 21:01 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-24 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found