java线程池ThreadPoolExecutor的拒绝策略RejectedExecutionHandler
近期在面试时问题时问到了ThreadPoolExecutor的拒绝策略RejectedExecutionHandler的实现CallerRunsPolicy,之前没深入思考过,在此记录一下。拒绝策略RejectedExecutionHandler源码packagejava.util.concurrent;/***Ahandlerfortasksthatcannotbeexecutedbya{@li