Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030457]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2018-06-24 19:21 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.