title: Python: Cross-platform solution to detect physical non-HT CPUs?
body: <p>I'm trying to detect the number of non-HyperThreading cores on a machine using a cross-platform method.</p>
  
  <p>Multiprocessing's <a href="http://hg.python.org/cpython/file/60f7719c0415/Lib/multiprocessing/__init__.py#l108" rel="nofollow">cpu_count</a> only detects the total number of processors, and I can grep /proc/cpuinfo on Linux machines to find the answer. However, I'm looking for a Windows solution.</p>
  
  <p>This newsgroup <a href="https://groups.google.com/forum/?fromgroups#!topic/nzpug/_5sFW9BEMQ4" rel="nofollow">thread</a> helped a little, but I still haven't found the answer.</p>