Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: multithreading solution to the below problem

by imrags (Monk)
on Jun 26, 2009 at 05:41 UTC ( #774925=note: print w/ replies, xml ) Need Help??


in reply to multithreading solution to the below problem

Well, i'd written a similar utility to scan around 10,000 devices for ping,
I used Threads with semaphore. Since it's windows, be careful about concurrent threads.
The whole operation took around 20 mins. But i had a limitation of memory consumption
as well. Here are the modules i used:

use threads qw(yield); use Thread::Semaphore; use Net::Ping; use Socket;
Raghu


Comment on Re: multithreading solution to the below problem
Download Code
Re^2: multithreading solution to the below problem
by Anonymous Monk on Jun 26, 2009 at 09:52 UTC
    Thanks Raghu

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-07 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls