线程中断
public class Thread implements Runnable {
public void interrupt() {}
public boolean isInterrupted() {
return isInterrupted(false);
}
public static boolean interrupted() {
return currentThread().isInterrupted(true);
}
}响应中断
最后更新于