86

线程池没你想的那么简单

 4 years ago
source link: https://juejin.im/post/5ce1f3b6f265da1ba2522f62
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.
前言 原以为线程池还挺简单的(平时常用,也分析过原理),这次是想自己动手写一个线程池来更加深入的了解它;但在动手写的过程中落地到细节时发现并没想的那么容易。结合源码对比后确实不得不佩服 Doug Lea 。 我觉得大部分人直接去看 java.util.conc

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK