Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Does the main thread yield?

by BrowserUk (Patriarch)
on Apr 24, 2013 at 16:09 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-19 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found