September 2011
Beginner
650 pages
15h 47m
English
The preceding examples have created only one child thread. However, your program can spawn as many threads as it needs. For example, the following program creates three child threads:



Ask the Expert
Q: Why does Java have two ways to create child threads (by extending Thread or implementing Runnable) and which approach is better?
A: The Thread class defines several methods that can be overridden by a derived class. Of ...
Read now
Unlock full access