Stopping Threads

How one thread can be stopped without coming out from the main programme?

Questions by MAYNKJAIN

Showing Answers 1 - 1 of 1 Answers

We can suspend thread execution for a particular period of time by using sleep() method
If we want to stop 1 thread execution until another thread execution is completed join() method is used
By using set Daemon() we can stop our thread execution, dependent/independent on parent (main) thread execution.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions