判断线程是否处于停止状态 1.this.interrupted():测试当前线程是否已经中断 2.this.isInterrupted():测试线程是否已经中断 this.interrupted():测试当前线程是否已经中断,是指运this.interrupted()的线程。 运行结果: 两个false; !this.isInterrupted() 相关文章: 2022-12-23 2021-07-18 2021-07-07 2021-12-01 2022-12-23 2021-12-17 2022-12-23 2022-12-23