I read that the Thread class stop(),destroy(),resume() methods been depricated. As a reason it says:
“Because stopping a thread in this manner is unsafe and can leave your application and the VM in an unpredictable state”
Honestly I didn’t understand the reason perfectly from the text. Can someone explain it more clearly please (Perticularly that “VM unpredictable” and “unsafe” words )
Thanks
Because it unlocks all Monitors the Thread has locked, and so other Threads may access an Object with an inconsistent state.
For further infos:
http://download.oracle.com/javase/6/docs/technotes/guides/concurrency/threadPrimitiveDeprecation.html