获取服务器的CPU核数

1、获取CPU核数

 Runtime.getRuntime().availableProcessors();

  执行结果:8

posted @ 2022-06-23 22:52  人在京城  Views(116)  Comments(0)    收藏  举报