
多线程
文章平均质量分 74
yangchenbeiluo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
多线程使用记录
springboot多线程使用记录 前提: 线程方法使用 @Async 注解 启动类使用 @EnableAsync 注解 主方法与线程方法不能在同一个类中 一、无返回值 /** * 多线程测试类 */ public class AsyncTest extends AbstractTestBase{ @Autowired private AsyncImpl asyncImpl; /** * 无返回 * @throws Interrupted原创 2021-06-21 18:02:13 · 235 阅读 · 0 评论 -
线程阻塞中断的恢复方式
转载自(https://blog.youkuaiyun.com/u013851082/article/details/69524861) 1、线程阻塞 一个线程进入阻塞状态可能的原因: ①通过调用sleep(millseconds)使任务进入休眠状态; class Demo1 implements Runnable throws InterruptedException{ public v...原创 2018-05-14 11:17:58 · 1404 阅读 · 0 评论