in reply to Building a thread pool

I got Thread::Pool working. Actually, it was working all along. I was just trying to drive the script with the debugger which doesn't work. However if anyone has an answer to the question about how to keep threads alive for re-use, I'd still like to know.

Barry

Replies are listed 'Best First'.
Re^2: Building a thread pool
by BrowserUk (Patriarch) on Apr 18, 2006 at 09:10 UTC
    I got Thread::Pool working.

    Could you post your working version please.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      I think the OP means that his original version works, just not under the debugger.

        That was my understanding too. For my own benefit, I would like to see a worked example of using Thread::Pool.


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.