Java Reference
In-Depth Information
Many classes implicitly create threads within an application. For ex-
ample, the Abstract Window Toolkit ( AWT ), described briefly in Chapter
25 , provides an event-based graphical user-interface and creates a spe-
cial thread for dealing with all associated events. Similarly, Remote
Method Invocation, also mentioned in Chapter 25 , creates threads for
responding to remote method invocations. Some of these threads may
be daemons and others may not, so use of these classes can keep your
application running longer than you may intend. In these circumstances
the use of the exit method becomes essential if there is no other way to
terminate the threads.
 
Search WWH ::




Custom Search