interupt (thread termination)
- Thread.interrupt (interrupt thread)
- Thread.isInterrupted() Determine whether it is interrupted
- Thread.interrupted() Determine whether it is interrupted and clear the current interrupted state
By way of instructions
volatile boolean isStop = false
The most complete concurrent programming mind map in history:https://www.processon.com/view/5b1f1ad7e4b03f9d251c06e5#map