Re: thread pool queue blocking!

2007-01-20 Thread Chris Wagner
Sorry I never replied, I had computer trouble and was sick at the same time. Ur sure the first thread is doing work? Put in some code in each thread to print out a status message like "thread 3 idle" and "thread 5 got payload, working...". Also check the number of queue items with $q->pending. U

thread pool queue blocking! Was: simple perl 5.8 thread pool creation

2006-12-15 Thread mailware
hi all, I am trying to implement a thread pool using Thread::Queue. I created a pool of 10 threads. The problem is only one thread is being used, and all jobs are queud up in a line behind the first. Each job is a subroutine call. How can I create this to be multi-tasking? ..eg jobs being execute