static final int nThreads = Runtime.getRuntime().availableProcessors();
线程池 线程MAX数量 推荐使用cpu数量*2
java获取cpu数量
最新推荐文章于 2025-06-19 11:08:47 发布

static final int nThreads = Runtime.getRuntime().availableProcessors();
线程池 线程MAX数量 推荐使用cpu数量*2