A Specialized Worker Thread Pool: HttpServer

Chapter 16 - The SureStop Utility

Java Thread Programming
Paul Hyde
  Copyright 1999 Sams Publishing

Chapter 16: The SureStop Utility
Overview
Although the stop() method on the class 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, Ill present the 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, SureStop will invoke stop() on it to ensure that it finally dies.

Toc


Java Thread Programming
Java Thread Programming
ISBN: 0672315858
EAN: 2147483647
Year: 2005
Pages: 149
Authors: Paul Hyde

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net