![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
多线程
文章平均质量分 94
进阶中的程序猿
这个作者很懒,什么都没留下…
展开
-
JUC高并发编程学习2
===================== Callable =============================== 创建线程多种方式 继承Thread类 实现Runnable接口 实现Callable接口 线程池方式 Runnable接口和Callable接口区别 是否有返回值 是否抛出异常 实现名称不同,一个是run 一个是call @FunctionalInterface public interface Runnable { /** * When an ob原创 2022-04-17 20:06:19 · 352 阅读 · 0 评论 -
JUC高并发编程学习1
什么是JUC Java.util.Concurrent 包 进程和线程 区别:一个进程中可以有多个线程执行 线程状态 public enum State { /** * Thread state for a thread which has not yet started. */ NEW,(新建) /** * Thread state for a runnable thread. A thre原创 2022-04-14 15:02:55 · 385 阅读 · 0 评论