[issue17444] multiprocessing.cpu_count() should use hw.availcpu on Mac OS X

Antoine Pitrou report at bugs.python.org
Sat Feb 1 19:21:25 CET 2014


Antoine Pitrou added the comment:

The current os.cpu_count implementation calls sysconf(_SC_NPROCESSORS_ONLN), which is apparently defined under OS X, and returns the number of online CPUs (logical?):
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/sysconf.3.html

multiprocessing has been modified to re-use os.cpu_count(), so I suggest closing this issue as out-of-date.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17444>
_______________________________________


More information about the Python-bugs-list mailing list