in reply to Re: Placing references onto thread queues (Perl 5.8)
in thread Placing references onto thread queues (Perl 5.8)

Thanks. Thread::Queue::Any seems to work fine. I was also considering Thread::Conveyor after a little research on my own.

The text I quoted does indeed appear to be an error in the 5.8.2 documentation. I will see what the author has to say on the subject.

Many thanks.

  • Comment on Re: Placing references onto thread queues (Perl 5.8)

Replies are listed 'Best First'.
Re: Re: Placing references onto thread queues (Perl 5.8)
by liz (Monsignor) on Dec 16, 2003 at 20:03 UTC
    If you're using Perl 5.8.1 or higher, I would recommend using Thread::Queue::Any. Thread::Conveyor basically grew out of a need to bypass the huge memory leak with pushing and popping shared arrays in 5.8.0.

    If you're interested in throttling (threads blocking if there are more than X entries in a queue), have a look at Thread::Conveyor.

    Liz

      Thread::Queue::Any seems to do the trick - it's working well at the moment. Thanks.

      At the moment, the resources of the machine (4 CPUs, 8Gb physical RAM) are such that throttling will probably not be required :)

      Thanks once more.