This pretends to illustrate the usage of threads in Java, in order to do such, there are different packages working like lessons,and you can visualice the algorithms in action.
It's important to read the comments at the start of the classes, these are the lesson. Running the main (in the javathreads package) you can watch what happens. The classes are as simple as possible to make it easy to understand the code.