Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Running perl threads in loopby Anonymous Monk |
on Sep 16, 2013 at 12:10 UTC ( [id://1054286]=note: print w/replies, xml ) | Need Help?? |
A much better design is to spawn threads which accept requests from some sort of queue and process them repeatedly ... remaining alive the entire time. A thread is not a subroutine, even though it runs one.
In Section
Seekers of Perl Wisdom
|
|