Why stop and suspend method are deprecated?
Stop() terminates the thread abruptly while suspend() method blocks a thread until another thread calls resume () on it. Stop () method will leave an object in inconsistent state because it immediately gives up locks on all other object that it has locked. For example, during transfer of money from one account to other account if the transfer thread is stopped, the bank account object is damaged. When a thread wants to stop another thread, it doesn’t know when it is safe to stop that thread. So it has been deprecated. Suspend () method frequently leads to deadlocks .It can be invoked on a thread externally at any point of time without the threads consent which is not desired. For this reason it has been deprecated.