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

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

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

Replies are listed 'Best First'.
Re: Re: Re: Placing references onto thread queues (Perl 5.8)
by fx (Pilgrim) on Dec 18, 2003 at 16:08 UTC

    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.