Thread Debugging Demonstration

This applet runs two threads with the same priority that do not stop or yield. ThreadDebugDemo is based on RaceTest, but it extends Applet and uses SelfishRunnerTextArea instead of SelfishRunner. SelfishRunnerTextArea merely writes to a TextArea widget as well as stdout. The difference between ThreadDebugDemo and RaceTestApplet is that ThreadDebugDemo runs for longer, which allows us to use a debugger on its threads.

If your browser recognized the applet tag, you would see an applet here.

Back to the Threads page.
Copyright © 1997, The Regents of the University of California. All rights reserved.
Last updated: 10/09/05, comments to: cxh at eecs