Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Do I need threads?

by cavac (Prior)
on Dec 20, 2011 at 21:10 UTC ( [id://944474]=note: print w/replies, xml ) Need Help??


in reply to Do I need threads?

You could also start the existing slightly modified shell script as background task. One per server. So they run in parallel.

Just make a shell or perl script that starts the existing code in a for loop one after another as background tasks. Most code is reused, the least work has to be done. And you don't have to worry about getting multithreading right since you don't actually multithread.

BREW /very/strong/coffee HTTP/1.1
Host: goodmorning.example.com

418 I'm a teapot

Replies are listed 'Best First'.
Re^2: Do I need threads?
by TechFly (Scribe) on Dec 20, 2011 at 21:17 UTC

    I could, but it still has the problem that I don't get the output in the main script. I really need to see the output so that I can parse for errors.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2025-11-08 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (65 votes). Check out past polls.

    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.