58

重走JAVA之路(五):面试又被问线程池原理?教你如何反击

 5 years ago
source link: https://juejin.im/post/5c99c29ee51d4559bb5c6541
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.
前言 在阿里巴巴Java开发手册中有这么两段话,如下图所示 可以看到提到的两点,第一要求不能显示的创建线程,也就是new Thread的这种形式,需要使用线程池对线程进行管理,第二不允许使用官方提供的四种线程池,而是需要通过自行创建的方式去创建线程池,更加理

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK