I have a very basic query.
I ran the "cpucounter" utility and it shows the following on my hyperthreaded machine -
physical processor count = 1
logical processors per physical processor = 2
Underthe same machine, i run the following Win32 code -
SYSTEM_INFO SysInfo ;
GetSystemInfo ( & SysInfo ) ;
DWORD count = SysInfo.dwNumberOfProcessor ;
The variable 'count' is now = 2.
Does this mean that SysInfo.dwNumberOfProcessor actually represents thelogical processor count instead of thephysical processor count ?
Also consider the following code snippet -
DWORD ProcessAffinityMask ;
& SystemAffinityMask ) ;
The following is observed -
ProcessAffinityMask=00000003 (2 processors)
SystemAffinityMask=00000003 (2 processors)
Again does this mean that the variables 'SystemAffinityMask' and 'ProcessAffinityMask'represent the affinity mask of logical processorsinstead ofphysical processors ?
Can someone clarify my doubts ?