Find Number of CPUs and Cores per CPU using Command Prompt

后端 未结 5 453
一向
一向 2021-01-31 15:24

I am trying to retrieve the Number of CPUs and Cores per CPU using Command Prompt. I have executed the following command:

wmic cpu get NumberOfCores, NumberOfLogic

5条回答
  •  [愿得一人]
    2021-01-31 15:57

    You can use the environment variable NUMBER_OF_PROCESSORS for the total number of processors:

    echo %NUMBER_OF_PROCESSORS%
    

提交回复
热议问题