Kansas 1900s Deadlock Law: When two trains
approach each other at a crossing, both shall come to a full
stop and neither shall start again until the other has gone.
Past students tell me (Feb 19, 2003) that it was actually a
Texan law.
The Producer-Consumer Problem in java. This solution uses Java's
synchronization keyword to create a correct implementation.
This is similar to using the OS synchronization concept of a
Monitor .
Dining Philosophers java animation. This is an incorrectly
synchronized implementation and deadlocks after a while (very quickly
if you slide the sleep timer all the way to the left).