How do I suspend a thread?

How do I suspend a thread?
Answer
The suspend() method of thread class puts the thread from running to waiting state. This method is used if you want to stop the thread execution and start it again when a certain event occurs. This method allows a thread to temporarily cease execution. The suspended thread can be resumed using the resume() method.
 

Tìm kiếm

Back
Top