Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Boolean Thread::Semaphore ?

by mellon85 (Monk)
on Feb 08, 2012 at 17:28 UTC ( #952534=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Boolean Thread::Semaphore ?
in thread Boolean Thread::Semaphore ?

The best way (aka not polling) would be that the worker thread will stop itself if the queue is full, and will be restarted by a client thread by a signal.

take a look at thread signalling chapter in threads documentation


Comment on Re^3: Boolean Thread::Semaphore ?
Re^4: Boolean Thread::Semaphore ?
by BrowserUk (Pope) on Feb 08, 2012 at 19:00 UTC
    take a look at thread signalling chapter in threads documentation

    That is a truly awful idea.

    Try it for yourself to find out why.


    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".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://952534]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2014-07-31 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (245 votes), past polls