上海某小公司面試題:Java執行緒池來聊聊
阿新 • • 發佈:2021-02-02
《對線面試官》系列目前已經連載**11**篇啦!進度是**一週更新兩篇**,歡迎持續關注
- [【對線面試官】Java註解](https://mp.weixin.qq.com/s?__biz=MzU4NzA3MTc5Mg==&mid=2247483821&idx=1&sn=e9003410a8d3c8a092de0c4d2002bedd&scene=21#wechat_redirect)
- [【對線面試官】Java泛型](https://mp.weixin.qq.com/s?__biz=MzU4NzA3MTc5Mg==&mid=2247483823&idx=1&sn=cc887dc2c7e68a69e8d4d141c2ca9b5e&scene=21#wechat_redirect)
- [【對線面試官】 Java NIO](https://mp.weixin.qq.com/s?__biz=MzU4NzA3MTc5Mg==&mid=2247483854&idx=1&sn=aa450a03ac0d6e8cf12cf13d4719ede3&scene=21#wechat_redirect)
- [【對線面試官】Java反射 && 動態代理](https://mp.weixin.qq.com/s?__biz=MzU4NzA3MTc5Mg==&mid=2247483893&idx=1&sn=af51e626f2c2baec8cae4f4a15425957&scene=21#wechat_redirect)
- [【對線面試官】多執行緒基礎](https://mp.weixin.qq.com/s?__biz=MzU4NzA3MTc5Mg==&mid=2247483918&idx=1&sn=ab8550bb284edcf7cf0c6d0b41e0c2f6&scene=21#wechat_redirect)
- [【對線面試官】 CAS](https://mp.weixin.qq.com/s?__biz=MzU4NzA3MTc5Mg==&mid=2247483977&idx=1&sn=1a3aa3aec27073aa3b422bc41d7fbe2d&chksm=fdf0ea16ca8763005aff64834eeb7bef08bf4ee2d8febb7e8d4d8e5d1542336e13fac71e2881&scene=21&cur_album_id=1657204970858872832#wechat_redirect)
- [【對線面試官】synchronized](https://mp.weixin.qq.com/s?__biz=MzU4NzA3MTc5Mg==&mid=2247483980&idx=1&sn=c9b620834adb889ad8ccedb6afdcaed1&scene=21#wechat_redirect)
- [【對線面試官】AQS&&ReentrantLock](https://mp.weixin.qq.com/s?__biz=MzU4NzA3MTc5Mg==&mid=2247484035&idx=1&sn=ccaec352e192f1fd40020d9a984e9461&chksm=fdf0eadcca8763ca5c44bd19118fd00e843c163deb40cda444b3fc08430c57760db15eca1ea6&scene=21&cur_album_id=1657204970858872832#wechat_redirect)
- [【對線面試官】執行緒池](https://mp.weixin.qq.com/s?__biz=MzU4NzA3MTc5Mg==&mid=2247484036&idx=1&sn=75e9e93a82a811e9c71b8127cf7ac677&chksm=fdf0eadbca8763cd7ab74757f9472d061c0244d2373a1ea85b1cbc833941441fdb1e91ead5b4&scene=21&cur_album_id=1657204970858872832#wechat_redirect)
- [【對線面試官】ThreadLocal](https://mp.weixin.qq.com/s?__biz=MzU4NzA3MTc5Mg==&mid=2247484118&idx=1&sn=9526a1dc0d42926dd9bcccfc55e6abc2&scene=21#wechat_redirect)
- [【對線面試官】SpringMVC](https://mp.weixin.qq.com/s?__biz=MzU4NzA3MTc5Mg==&mid=2247484064&idx=1&sn=3a59514a8262ab61036fc89cf0b0a27e&chksm=fdf0eaffca8763e90002ce1daf365f717a4bda3e50878f65943f52d14bee78fc65e837ef32f9&token=664255414&lang=zh_CN&scene=21#wechat_redirect)
- ...
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmqpax2xzyj30ku112q8n.jpg)
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmqpaziszjj30ku112dks.jpg)
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmqpau0g1xj30ku112jxt.jpg)
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmqpb1g5raj30ku112gsw.jpg)
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmqpay7kx8j30ku11244o.jpg)
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmqpaw7lzlj30ku112qa0.jpg)
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmqpauc791j30ku112q9v.jpg)
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmqpavopfnj30ku1127au.jpg)
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmqpav7qwqj30ku112q9m.jpg)
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmqpaz5cszj30ku1127b7.jpg)
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmqpawnongj30ku112wkv.jpg)
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmqpb0exsxj30ku112n3m.jpg)
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmqpfbi1swj30ku1120xu.jpg)
文章以純面試的角度去講解,所以有很多的細節是未曾鋪墊的。
單純通過一篇文章來想要在面試中整塊流程是很難的,強烈建議看完之後自己去**翻下原始碼**。
設定執行緒數量有經驗值,但更多的是以實際業務去壓測,去調整為準
歡迎關注我的微信公眾號【**Java3y**】來聊聊Java面試
**[【對線面試官】系列](https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzU4NzA3MTc5Mg==&action=getalbum&album_id=1657204970858872832#wechat_redirect) 一週兩篇持續更新中!**