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

Re^2: Does the main thread yield?

by BrowserUk (Pope)
on Apr 24, 2013 at 16:09 UTC ( #1030457=note: print w/ replies, xml ) Need Help??


in reply to Re: Does the main thread yield?
in thread Does the main thread yield?

The OP has a machine producing widgets onto a conveyor at a given rate; and a bunch of packers taking them off the belt and putting them in boxes.

When everything is running well, this works great, but occassionally, one of the packers need to visit the loo, or fetch some more boxes, or a couple of box blanks get stuck together; at which point, the other packers are unable to keep up with the conveyor.

Your "solution" to this, is to hire a warehouse and a fleet of vans and ship the widgets coming out of the machine off to the warehouse. And then another fleet of vans and two-way radios, and whenever a packer is free to pack another widget, they radio the warehouse and wait while a (single) widget is loaded onto the van; driven back from the warehouse and delivered to the packer.

You get no respect from me because you do not deserve any whilst you continue to post garbage like this.


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.


Comment on Re^2: Does the main thread yield?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-12-21 02:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (101 votes), past polls