摘要:
public void execute(JobExecutionContext context) throws JobExecutionException { System.out.print("开始执行 ->"); // 输出1-10 for (int i = 1; i <= 10; i++) { 阅读全文
posted @ 2022-06-15 06:53
锐洋智能
阅读(648)
评论(0)
推荐(0)
摘要:
一、概述: 1、没有任何语言方面的需求一个被中断的线程应该终止。中断一个线程只是为了引起该线程的注意,被中断线程可以决定如何应对中断。 2、Thread.interrupt()方法不会中断一个正在运行的线程。 3、如果线程在调用 Object 类的 wait()、wait(long) 或 wait( 阅读全文
posted @ 2022-06-15 06:10
锐洋智能
阅读(3286)
评论(0)
推荐(1)
浙公网安备 33010602011771号