Suspending, Resuming, and Stopping Threads Using Java 1.1 and Earlier
Prior to Java 2, a program used suspend( ) and resume( ), which are methods defined by – Thread, to pause and restart the execution of a thread. TIlKY have the form shown below:
final void suspend( )
final void resume( )
The following program demonstrates these methods:
The Thread class also defines a method called stop( ) that stop thread. Its signature is shown here:
Once a thread has been stopped, it cannot be restarted using resumer I.