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 <rep...@bugs.python.org>
<http://bugs.python.org/issue17444>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to