curmudge0n
Programmer
Not sure if this is the right place to ask this, but I have a cross-platform app that needs to know the number of processors for licensing purposes.
In linux, I've developed a semi-reliable way of determining the count by grepping /cpu/procinfo and looking for the ht flag.
Anyway, does someone know a method for getting an accurate cpu count in windows? Is using the registry the best bet, or will hyperthreading make that count unreliable too?
Cheers.
In linux, I've developed a semi-reliable way of determining the count by grepping /cpu/procinfo and looking for the ht flag.
Anyway, does someone know a method for getting an accurate cpu count in windows? Is using the registry the best bet, or will hyperthreading make that count unreliable too?
Cheers.