CreateThreadExample -- creating threads in two
different ways:
- with a class that implements the
Runnable
interface (the "BOOM" thread)
- with a subclass of
java.lang.Thread (the
"tick . . . " thread)
Each of these threads carries out its own sequence
of commands, oblivious to the other. They interact only
indirectly, by sharing the same text area for output.
The source.