Social Sciences, asked by singhabhi3993, 1 year ago

Difference between suspending and stopping a thread in java

Answers

Answered by patel25
4
Answer is in the image
Attachments:
Answered by dackpower
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