How to avoid threads.
Answers
Answered by
0
Answer:
Modern ways to suspend/stop a thread are by using a boolean flag and Thread. interrupt() method. Using a boolean flag: We can define a boolean variable which is used forstopping/killing threads say 'exit'. Whenever we want to stop a thread, the 'exit' variable will be set to true.
.
.
◇◇♡
Similar questions