Tuesday, October 27, 2009

Overview




















Chapter 16 - The SureStop Utility

Java Thread Programming
Paul
Hyde






size=1>  size=2>Copyright � 1999 Sams
Publishing




















size=5>Chapter 16: size=5>The SureStop Utility












size=4>Overview












size=2>Although the size=2>stop() method on
the class
size=2>Thread has been
deprecated as of JDK 1.2, there are still times when it can be used
as a last resort to get a thread to die. In this chapter, I’ll
present the
size=2>SureStop class,
which can be used to monitor a thread for a period of time. If the
thread is still alive after the specified period of time has
elapsed,
size=2>SureStop will
invoke
size=2>stop() on it to
ensure that it finally dies.












valign="top" bgcolor="#FFFFFF">

Toc



No comments:

Post a Comment