GetSystemInfo是否给你的虚拟CPU总数(即超线程)? [英] Does GetSystemInfo give you the total number of virtual CPUs (i.e. hyper-threaded)?
问题描述
GetSystemInfo将为您提供物理CPU /内核的数量,但我想知道虚拟CPU的总数。也就是说
GetSystemInfo will give you the number of physical CPUs / cores, but I would like to know the total number of virtual CPUs. I.e. on the new Nahelam chips, they have 4 cores, but appear as 8 cpus.
如果GetSystemInfo不提供这些信息,我需要什么API(我看到一个获取多个逻辑处理器的函数,但它只有Vista,我需要支持XP)?
If GetSystemInfo doesn't give this information, what API do I need (I've seen a function for getting number of logical processors, but it is Vista only. I need to support XP)?
推荐答案
GetLogicalProcessorInformation 功能
(Windows Vista,Windows XP Professional x64 Edition,Windows XP with SP3)
GetLogicalProcessorInformation Function ( Windows Vista, Windows XP Professional x64 Edition, Windows XP with SP3)
这篇关于GetSystemInfo是否给你的虚拟CPU总数(即超线程)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!