Blocking I/O in Restrooms considered harmful to bladders.
Blocking IO:

Non Blocking IO:

Can anyone give me a high performance advanced threading analogy for green threads?
Blocking IO:

Non Blocking IO:

Can anyone give me a high performance advanced threading analogy for green threads?
This entry was posted on Tuesday, January 15th, 2008 at 9:29 pm and is filed under Super Dork, Wes's Boring Life. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Sure! Car door handles and locks are my favorite example of a non-thread-safe component. If the passenger tries to open the door at the same moment that the driver hits the “unlock all doors” button, then the door whose handle is being lifted doesn’t actually unlock. The car designers probably forgot a synchronize block.
BTW, the urinal above is not non-blocking, it’s just parallelizable up to, say, 3 peers. (Har-de-har har, get it? Peers / pee-ers? Please groan louder. Thank you.)