查看Windows服务器的CPU详细信息

让我们来看看Win32_Processor类的几个关键属性:

  •  AddressWidth On a 32-bit operating system, the value is 32 and on a 64-bit operating system it is 64.

  •  Architecture Processor architecture used by the platform.


Value

Meaning

0 (0x0)

x86

1 (0x1)

MIPS

2 (0x2)

Alpha

3 (0x3)

PowerPC

5 (0x5)

ARM

6 (0x6)

Itanium-based systems

9 (0x9)

x64


  •  NumberOfCores Number of cores for the current instance of the processor. A core is a physical processor on the integrated circuit. For example, in a dual-core processor this property has a value of 2.

  •  NumberOfLogicalProcessors Number of logical processors for the current instance of the processor. For processors capable of hyperthreading, this value includes only the processors which have hyperthreading enabled.


DOS命令查看

C:\Users\xucy>wmic cpu get addresswidth,architecture,deviceid,name,numberofcores,numberoflogicalprocessors


AddressWidth Architecture DeviceID Name NumberOfCores NumberOfLogicalProcessors

64 9 CPU0 Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz 6 12

64 9 CPU1 Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz 6 12


PowerShell查看

PS C:\Users\xucy> Get-WmiObject -Class Win32_Processor | Format-Table -AutoSize AddressWidth,Architecture,DeviceId,Name,NumberOfCores,NumberOfLogicalProcessors


AddressWidth Architecture DeviceID Name NumberOfCores NumberOfLogicalProcessors

64 9 CPU0 Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz 6 12

64 9 CPU1 Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz 6 12


综上所述,我的CPU是双路六核开启超线程。


参考:

Win32_Processor class https://msdn.microsoft.com/en-us/library/aa394373%28VS.85%29.aspx













本文转自UltraSQL51CTO博客,原文链接:http://blog.51cto.com/ultrasql/1629622 ,如需转载请自行联系原作者


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值