The objective of the game is to bring all the shapes (rounds and squares) inside the top box, by clicking on them. The name Deadlock comes from the fact that this puzzle simulates a producer-consumer situation with a shared buffer and a nonordered, nondeterministic notification mechanism à la Java (rounds and squares are producer and consumer threads). The application version (Deadlock.jar) accepts a command-line argument for the buffer size.


Michel Charpentier <>
Last modified: Wed Mar 10 19:13:02 EST 2004