I find it very puzzling that you reference Thread::Queue in your comments:
# make sure there undefs are enqueued to the workQueue so that child + threads can # complete the process rather than being blocked on Thread::Queue's +dequeue
but seem to have forgotten to include it in your code. Especially as it would exactly address the apparent problem with your "experiment".
Consistently reinforcing your "I'm very new to PERL threading.." by upcasing Perl is a really cheesy touch.
In reply to Re: Implementing Custom ThreadPool
by BrowserUk
in thread Implementing Custom ThreadPool
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |