This demonstrates the use of threads. It accompanies the book "Object-Oriented Software Engineering: Practical Software Development using UML and Java" by Lethbridge and Laganière.

Compile the java files and then run "java ThreadExample".

Back to the source code page.