首页 > TAG信息列表 > namedThreadFactory

线程池命名

public static void main(String[] args) throws Exception { //创建线程池 ThreadFactory namedThreadFactory = new ThreadFactoryBuilder().setNameFormat("thread-call-runner-%d").build(); ExecutorService executorService = Executors.