Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Testing many devices - are threads the answer?

by derby (Abbot)
on May 12, 2009 at 13:30 UTC ( [id://763470]=note: print w/replies, xml ) Need Help??


in reply to Testing many devices - are threads the answer?

You don't say what platform but if *nix, I would go with a Parallel::ForkManager solution before I did threads.

-derby

Replies are listed 'Best First'.
Re^2: Testing many devices - are threads the answer?
by McDarren (Abbot) on May 12, 2009 at 14:25 UTC
    Thanks for the pointer.

    I gave this a go, and found that implementing it into my existing code was incredibly easy - and had the desired result. Using Parallel::ForkManager with 10 "workers" reduced my total run time from ~15 minutes to just under 2 minutes.

    This has basically solved my problem, but I'm still curious about threads, so I plan to have a look at the example provided by BrowserUK next.

    Thanks again,
    Darren :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-19 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found