Wednesday, February 21, 2007

Starting and Stopping Threads...

Usage of Thread.stop(), Thread.resume(), Thread.suspend() and Thread.runFinalizersOnExit() is not encoraged. We should use the following pattern to stop threads. Refer to links:
http://java.sun.com/j2se/1.5.0/docs/guide/misc/threadPrimitiveDeprecation.html
http://www.forward.com.au/javaProgramming/HowToStopAThread.html

No comments: