Process connection
2 answers
Using a process handle, you can call the SetProcessAffinityMask Win32 API function to set the proximity of a processor to another process. Note that all the usual security restrictions apply, which means you can probably change a process's affinity for its own process.
+3
source to share
In C / C ++, you can use SetThreadIdealProcessor () . I don't know if this is available in python.
DWORD processorId = 0;
SetThreadIdealProcessor(GetCurrentThread(),processorId);
0
source to share