
多线程
Jefukou
我,就是未来!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
线程异常处理
线程异常处理异常处理方法:1.直接在子线程内try-catch,不能通知到主线程2.不在子线程内try-catch,新建MyUncaughtExceptionHandler 实现Thread.UncaughtExceptionHandler,重写uncaughtException(Thread t, Throwable e) 处理异常,不能通知到主线程3.线程任务实现Callable接口...原创 2019-12-28 11:35:00 · 352 阅读 · 0 评论 -
关于ThreadPoolExecutor
一、官网的解释 /** * Creates a new {@code ThreadPoolExecutor} with the given initial * parameters. * * @param corePoolSize the number of threads to keep in the pool, even * i...原创 2019-12-28 01:20:39 · 163 阅读 · 0 评论