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?

One Response to “Blocking I/O in Restrooms considered harmful to bladders.”

  1. 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.)

Leave a Reply