多线程(一) - java线程(四) - interrupt方法详解
1. interrupt打断线程
1.1 打断sleep,wait,join(阻塞状态)的线程
public static void main(String[] args) throws InterruptedException{Thread t1 new Thread(() -> {log.debug("sleep;;;");try {Thread.sleep(50…
2026/8/21 14:26:55