in reply to Re: Output Queue from Multiple Threads
in thread Output Queue from Multiple Threads

OK great thanks Browser, I see your posts all the time and they are a huge help with threads! So aside from that you don't see any obvious issues with that example?
  • Comment on Re^2: Output Queue from Multiple Threads

Replies are listed 'Best First'.
Re^3: Output Queue from Multiple Threads
by BrowserUk (Patriarch) on Jul 31, 2015 at 17:50 UTC
    So aside from that you don't see any obvious issues with that example?

    This looks suspect to me: $outputQueue->enqueue(undef); If the intent of the undef is to terminate the output sub loop, pushing it before the output has been queued ain't gonna work.

    And this: $workerQueue->engueue($_) foreach @computer; tells me you haven't run the code you posted; so ...


    Anyone got any experience of this phone's predecessor?

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
    In the absence of evidence, opinion is indistinguishable from prejudice.
    I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!