• 2022-05-28
    下面的代码用于实现在一个名称为thread的线程中,中断该线程(未执行wait()、join()或者sleep()方法),空白处所缺代码是( )。[br][/br] … thread.interrupt(); … public void run() { while(________){ … } }
    A: true
    B: false
    C: Thread.currentThread().isInterrupted()
    D: !Thread.currentThread().isInterrupted()