Get the number of cores of the current machine's CPU

Get the number of CPU cores of the current machine, Runtime.getRuntime().availableProcessors(), the parallel thread pool also obtains the number of CPU cores in the current way.

Guess you like

Origin blog.csdn.net/qq_38428623/article/details/103094340