?????????????????
???????μ??????????????????????????????????????????????????????????????????????????Щ?????????????3????????
????ThreadPoolExecutor#AbortPolicy???????????????RejectedExecutionException????
????ThreadPoolExecutor#CallerRunsPolicy???????????????Caller??????????????????????feedback????????????????????????
????ThreadPoolExecutor#DiscardPolicy??????????????????????
????ThreadPoolExecutor#DiscardOldestPolicy???????????????????????????????????????3?????У???????????????????????
???????????????????????????????????RejectedExecutionHandler??????????????
????????Hook?????????
????ThreadPoolExecutor????protected??????????????????????????????????????????????????Щ???顣????????????????????????ThreadLocal???????????????????????????????Hook??beforeExecute??afterExecute???????????Hook???????????????????????????????????????rerminated??
???????hook???????????????????????????н????????ж??
?????????????
????getQueue????????????????queue??????????Щ??????debug??????????????????????????????remove??????purge?????????????????????????????
???????????
?????????????????ò????????????0?????????????????????????????shutdown???????????????????????????shutdown???????????????????????????????keepAliveTime??allowCoreThreadTimeOut????????
????д???
????JAVA????????API???????????????????л??????????????????????????????????д????????????????????ú??????????????ó????е?????????????????????????????????????????????飬?????????????Щ?????????????????????????????????????Щ???飬???????????????????????????????????????ó?????IO???????????????????????????????????????????CPU??????IO?????????????????????????????????Щ??????????????????????????????????????????????????????顣:)