MatrixRhythm

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2020年5月19日

摘要: https://www.cnblogs.com/jmsjh/p/7762034.html 阅读全文
posted @ 2020-05-19 21:15 Matrix锅锅 阅读(110) 评论(0) 推荐(0) 编辑

摘要: Java多线程实现方式主要有四种:继承Thread类、实现Runnable接口、实现Callable接口通过FutureTask包装器来创建Thread线程、使用ExecutorService、Callable、Future实现有返回结果的多线程。 其中前两种方式线程执行完后都没有返回值,后两种是带 阅读全文
posted @ 2020-05-19 21:13 Matrix锅锅 阅读(190) 评论(0) 推荐(0) 编辑