Click here to Skip to main content
15,907,910 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How do I count CPU cores? Pin
David Crow18-Jul-06 2:33
David Crow18-Jul-06 2:33 
GeneralRe: How do I count CPU cores? Pin
khb18-Jul-06 6:01
khb18-Jul-06 6:01 
GeneralRe: How do I count CPU cores? Pin
David Crow18-Jul-06 6:50
David Crow18-Jul-06 6:50 
GeneralRe: How do I count CPU cores? Pin
khb18-Jul-06 8:19
khb18-Jul-06 8:19 
GeneralRe: How do I count CPU cores? Pin
David Crow18-Jul-06 8:20
David Crow18-Jul-06 8:20 
QuestionRe: How do I count CPU cores? Pin
khb18-Jul-06 21:09
khb18-Jul-06 21:09 
AnswerRe: How do I count CPU cores? Pin
Mike O'Neill19-Jul-06 15:48
Mike O'Neill19-Jul-06 15:48 
GeneralRe: How do I count CPU cores? [modified] Pin
khb19-Jul-06 22:47
khb19-Jul-06 22:47 
Hi Mike,

thanks for your answer. Currently I'm using the code from the article Counting Physical and Logical Processors here on CP. It makes also use of the functions you mentioned. I split up the code on did some tests on the following 2 PCs (I was wrong before: Pentium D has no HT):
1) Pentium 4, 3.06GHz, Single core, HT
2) Pentium D 950, 3.40GHz, Dual core, No HT
I'd like to calculate the following values:
1) # CPUs: 1, #Cores: 1, #Log. CPUs per Core: 2
2) # CPUs: 1, #Cores: 2, #Log. CPUs per Core: 1
Now the problem: The functions you mentioned return the following values for both(!) CPUs:
GetSystemInfo.dwNumberOfProcessors: 2
cpuid HTT bit: Set
cpuid # logical CPUs per physical CPU: 2
This shows that it's not possible to distinguish between HT and dual core Cry | :((

Regards,
Marcus.
QuestionCatching events from a dynamically loaded html in CHtmlView [modified] Pin
georgekjolly16-Jul-06 21:25
georgekjolly16-Jul-06 21:25 
AnswerRe: Catching events from a dynamically loaded html in CHtmlView Pin
Abhi Lahare16-Jul-06 22:50
Abhi Lahare16-Jul-06 22:50 
QuestionGUIDGen.exe utility Pin
Anu_Bala16-Jul-06 21:06
Anu_Bala16-Jul-06 21:06 
AnswerRe: GUIDGen.exe utility Pin
Sarath C16-Jul-06 21:41
Sarath C16-Jul-06 21:41 
AnswerRe: GUIDGen.exe utility Pin
Parthi_Appu16-Jul-06 21:44
Parthi_Appu16-Jul-06 21:44 
QuestionSCardTransmit problem Pin
black falcon16-Jul-06 21:01
black falcon16-Jul-06 21:01 
AnswerRe: SCardTransmit problem Pin
Maxwell Chen16-Jul-06 23:27
Maxwell Chen16-Jul-06 23:27 
QuestionERROR??? Pin
mimimimilaw16-Jul-06 20:15
mimimimilaw16-Jul-06 20:15 
AnswerRe: ERROR??? Pin
Naveen16-Jul-06 20:24
Naveen16-Jul-06 20:24 
AnswerRe: ERROR??? Pin
Parthi_Appu16-Jul-06 20:27
Parthi_Appu16-Jul-06 20:27 
AnswerRe: ERROR??? Pin
Hamid_RT16-Jul-06 20:37
Hamid_RT16-Jul-06 20:37 
Questionm_tooltip.Create(this) Pin
ashish dogra16-Jul-06 20:13
ashish dogra16-Jul-06 20:13 
AnswerRe: m_tooltip.Create(this) Pin
Hamid_RT16-Jul-06 20:31
Hamid_RT16-Jul-06 20:31 
AnswerRe: m_tooltip.Create(this) Pin
ashish dogra16-Jul-06 21:12
ashish dogra16-Jul-06 21:12 
GeneralRe: m_tooltip.Create(this) Pin
Hamid_RT16-Jul-06 21:27
Hamid_RT16-Jul-06 21:27 
GeneralRe: m_tooltip.Create(this) Pin
ashish dogra16-Jul-06 22:40
ashish dogra16-Jul-06 22:40 
GeneralRe: m_tooltip.Create(this) Pin
Hamid_RT17-Jul-06 0:58
Hamid_RT17-Jul-06 0:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.