参考 Java中停止线程的3种方式,非常感谢博主的分享, 在此记录一下,方便以后的复习 java中断一个正在运行中的线程 thread.stop()thread.interrupt();预先埋入一个中断标识符(boolean)