1:获取cpu核心数: Runtime.getRuntime().availableProcessors();
创建线程池: Executors.newFixedThreadPool(nThreads);//nThreads为线程数2:
2024-01-19 14:11:52
1:获取cpu核心数: Runtime.getRuntime().availableProcessors();
创建线程池: Executors.newFixedThreadPool(nThreads);//nThreads为线程数2:
下一篇:「Foundation」结构体