I was wondering if there was a way to run a thread on a seperate core instead of just a thread on that core?
Thanks
I was wondering if there was a way to run a thread on a
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.
If you create a thread, you have by default no control on which core it will run. The operation system’s scheduling algorithm takes care of that, and is pretty good at its job. However, you can use the
SetThreadAffinityWinAPI to specify the logical cores a thread is allowed to run on.Don’t do that unless you have very good reasons. Quoting MSDN: