I understand why calling suspend() from outside a thread is inherently deadlock prone, since one can't tell whether the thread has any locks.
But what about calling suspend() from within the thread itself, say from within the run() method? It seems to me that this is not inherently deadlock prone, since one can tell, from within the thread, what monitors one has locked.
is so much cleaner than
[ September 22, 2004: Message edited by: Warren Dew ]