Difference between suspending and stopping a thread in java
Answers
Answered by
4
Answer is in the image
Attachments:
Answered by
1
The suspend() system of thread places the thread from working to waiting for the state. This system is practiced if you require to stop the thread performance and start it again when a particular incident occurs. This system provides a thread to momentarily cease performance.
In today's Java account, one can stop a string by practicing a Boolean volatile variable. If one recognizes, threads in Java start execution from the run() classification and hold, when it proceeds out of run() mode, either ordinarily or due to an objection.
Similar questions