[issue12655] Expose sched.h functions
Antoine Pitrou
report at bugs.python.org
Sat Aug 4 15:03:11 CEST 2012
Antoine Pitrou added the comment:
> Try with an initial value of ncpus=1.
Well, I've tried and it works:
>>> os.sched_getaffinity(0)
{0, 1, 2, 3}
> I don't know if CPU_SETSIZE is part of the standard (POSIX?).
These are Linux-specific functions.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12655>
_______________________________________
More information about the Python-bugs-list
mailing list