61

线程池没你想的那么简单(续)

 4 years ago
source link: https://juejin.im/post/5cf864996fb9a07ef3765809
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言 前段时间写过一篇《线程池没你想的那么简单》,和大家一起撸了一个基本的线程池,具备: 线程池基本调度功能。 线程池自动扩容缩容。 队列缓存线程。 关闭线程池。 这些功能,最后也留下了三个待实现的 features 。 执行带有返回值的线程。 异常处理

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK