标签: java multithreading
Executors.newFixedThreadPool(NO_OF_THREADS, new ThreadFactory() { @Override public Thread newThread(Runnable r) { return new Thread(() -> { }); } }).execute(//returned thread here);
如何将匿名线程作为参数传递给execute函数?为每个线程创建返回的线程对象的新实例。