Please take a look at the Applet Producer-Consumer residing on the
http://cities.lk.net/approco.html

The applet implements well-known pattern Producer-Consumer.
Article contains next issues:
1) Two independent annimation Views. Implementation notes.
2) Threading in this applet. Thread Monitor View.
Thread snapshots from the Java Console of Explorer and Netscape.
3) Patterns related to the Producer-Consumer
4) Some tips about MVC pattern