亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

java - ExecutorService不關(guān)閉會(huì)怎樣?
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-04-18 10:49:25
0
1
1109

ExecutorService不關(guān)閉會(huì)怎樣,或者怎么樣保證web項(xiàng)目的公用線程池在項(xiàng)目結(jié)束時(shí)在關(guān)閉?

PHP中文網(wǎng)
PHP中文網(wǎng)

認(rèn)證高級(jí)PHP講師

reply all(1)
阿神

If you don’t actively close the thread pool, there will be some dormant threads in the pool, which will usually be shut down after 1 minute.
So if a thread pool is used in a web project, it is best to turn off the initialized thread pool in the ServletContextListener.destroy method, usually using shutdown()shutdownNow() ,如果做得完善些,可以再加上 awaitTermination such processing.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template