Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Parallel downloading under Win32?

by Corion (Patriarch)
on Apr 29, 2009 at 20:10 UTC ( [id://760971]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Parallel downloading under Win32?
in thread Parallel downloading under Win32?

It's not actually hard. The system has threads that are fed off a Thread::Queue. Each thread takes a job from the queue, performs it, then takes the next one from the queue. The map just creates $T threads, and to tell each thread that it is finished, it sticks $T undef elements at the end of the queue. Then the main thread waits that all threads finish their work. That's all there is to it.

Replies are listed 'Best First'.
Re^4: Parallel downloading under Win32?
by Xenofur (Monk) on Apr 29, 2009 at 21:25 UTC
    Thanks for the explanations, they helped me a lot in understanding it. :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2026-02-18 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.