View CPU under windows and CentOs cmd

The difference between multithreading and multiprocessing is Baidu;
wmic command
input CPU get name
Insert picture description here
cpu get NumberOfCores check your CPU is a few core physical core
Insert picture description here
cpu get NumberOfLogicalProcessors get the number of
logical CPU logical CPU uses hyper-threading technology, a physical core can have two logical cores
Insert picture description here

CentOS system view CPU information
grep'physical id' /proc/cpuinfo
view the number of cores
grep'core id' /proc/cpuinfo
view the number of payment measurement threads
grep'processor' /proc/cpuinfo

Guess you like

Origin blog.csdn.net/weixin_44887276/article/details/114868639