Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Placing references onto thread queues (Perl 5.8)

by fx (Pilgrim)
on Dec 16, 2003 at 09:39 UTC ( [id://315060]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 15: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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://315060]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.