Content received from: http://JavaFAQ.nu/java-article426.html


Why are Thread.suspend and Thread.resume deprecated?
Wednesday, March 17, 2004 (00:00:00)

Posted by jalex

Question: Why are Thread.suspend and Thread.resume deprecated?

Answer: Thread.suspend is inherently deadlock-prone. If the target thread holds a lock on the monitor protecting a critical system resource when it is suspended, no thread can access this resource until the target thread is resumed. If the thread that would resume the target thread attempts to lock this monitor prior to calling resume, deadlock results. Such deadlocks typically manifest themselves as "frozen" processes.

this question/answer was published based on SUN's article:
http://java.sun.com/products/jdk/1.2/docs/guide/misc/threadPrimitiveDeprecation.html

*******************************************
Our older tips: March 22, 2001 - October 21, 2002 READ HERE
All published and not published on the site tips read HERE