[issue17444] multiprocessing.cpu_count() should use hw.availcpu on Mac OS X
Ronald Oussoren
report at bugs.python.org
Mon Mar 18 16:18:35 CET 2013
Ronald Oussoren added the comment:
I'm not sure if hw.availcpu is the right value to use as it is not documented at all (neither in a manpage, nor in a headerfile).
hw.activecpu seems to be the one that should be used: it is documented as "The number of processors currently available for executing threads." in the sysctl.h header file and that comment also mentions that it should be used to determine the amount of threads to start in an SMP application.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17444>
_______________________________________
More information about the Python-bugs-list
mailing list