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.