Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Do I need threads?by cavac (Parson) |
on Dec 20, 2011 at 21:10 UTC ( [id://944474]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|