Home | Java Menu | Java Applets | Java Tips | E-mail Us
Java Applets
Date and time
Image animation
Window status message on mouse over images
Using the <PARAM> tag to collect user arguments
Graphical User Interface (GUI) - buttons, labels, checkboxes, and text areas
Multimedia using sound
Multimedia using image
Application and Applet combined
Running threads
Running Threads

Using the Runnable interface to create simple threads.

Output will vary:

View Java Applet Source

Note: This is an example of creating simple threads in Java. It does not include features such as the wait(), notify(), and notifyAll() methods from the Object class. In a normal environment, one thread usually has to wait for another thread to complete its task before it can perform. Ideally, the threads need to communicate between each other when they have completed their task, or else a deadlock could occur.

For more information on threads, view Sun Microsystems' on-line documentation.

Home | Java Menu | Java Applets | Java Tips | Legal
© 1999-2003 Complete e Solutions, Inc.