Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/129.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ GetSystemInfo是否提供虚拟CPU的总数(即超线程)?_C++_Windows_Multithreading_Winapi - Fatal编程技术网

C++ GetSystemInfo是否提供虚拟CPU的总数(即超线程)?

C++ GetSystemInfo是否提供虚拟CPU的总数(即超线程)?,c++,windows,multithreading,winapi,C++,Windows,Multithreading,Winapi,GetSystemInfo将提供物理CPU/内核的数量,但我想知道虚拟CPU的总数。也就是说,在新的Nahelam芯片上,它们有4个内核,但显示为8个CPU 如果GetSystemInfo没有提供这些信息,我需要什么API(我见过一个获取逻辑处理器数量的函数,但它只是Vista。我需要支持XP)?函数 (Windows Vista、Windows XP Professional x64 Edition、带SP3的Windows XP)使用NAPI(Win32常见问题解答)您好,我们必须支持Win

GetSystemInfo将提供物理CPU/内核的数量,但我想知道虚拟CPU的总数。也就是说,在新的Nahelam芯片上,它们有4个内核,但显示为8个CPU

如果GetSystemInfo没有提供这些信息,我需要什么API(我见过一个获取逻辑处理器数量的函数,但它只是Vista。我需要支持XP)?

函数
(Windows Vista、Windows XP Professional x64 Edition、带SP3的Windows XP)

使用NAPI(Win32常见问题解答)

您好,我们必须支持Windows XP的基本安装。我想在这种情况下,我只能使用GetSystemInfo作为备份。