Suspending a thread

It is sometimes useful to stop a thread temporarily from processing in your application. When you suspend a thread, the state of the thread, including all the attributes and locks held by the thread, is maintained until that thread is resumed.

Use thread suspension carefully. Suspending threads can easily cause application deadlocks and timeout conditions. You can solve most problems that involve thread suspension by using other safer mechanisms (such as synchronization primitives).

Note: The suspend method of the Java™ thread class has been deprecated.