Is it possible to programmatically either via the win32API (python) or via a command line option set the processor affinity for a process?
Is it possible to programmatically either via the win32API (python) or via a command
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Given a process handle, you can call the SetProcessAffinityMask Win32 API function to set the processor affinity for another process. Note that all the usual security restrictions are in effect, that is, you will probably only be able to change the process affinity for a process you own.