eryk sun at 2016/9/28 1:05:32PM wrote: > In Unix, Python's os module may have sched_setaffinity() to set the > CPU affinity for all threads in a given process. > > In Windows, you can use ctypes to call SetProcessAffinityMask, > SetThreadAffinityMask, or SetThreadIdealProcessor (a hint for the > scheduler). On a NUMA system you can call GetNumaNodeProcessorMask(Ex) > to get the mask of CPUs that are on a given NUMA node. The cmd shell's > "start" command supports "/numa" and "/affinity" options, which can be > combined.
Seems have to dive into Windows to understand its usage:-) -- https://mail.python.org/mailman/listinfo/python-list