Jump to content
  • Advertisement
Sign in to follow this  
Adaline

Windows : distribution of running threads on CPU cores

This topic is 2781 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello

Is Windows (Vista and 7) able to automatically change the executing core of running threads for a better distribution of the running threads on the CPU ?

Thank you

Share this post


Link to post
Share on other sites
Advertisement
Yes, in fact it is often forced to do so since you'll have far more threads running than cores to execute them on. (Which means most threads will be inactive and the OS has to swap between them rapidly to keep up the appearance of multiple applications running at the same time, each time a thread is swapped in it will be placed on the core best suited for it)

Share this post


Link to post
Share on other sites
You will do yourself and your users a great favour if you forget about thread affinity (and even more so about process affinity) right away.

There are very, very, very few valid reasons why one would need to set thread affinity and 99% of the time when people do this, it only shows that they're totally clueless. It is utterly annoying for users having to reset affinity every time after starting your program, too.

Don't do it, everything is good as it is.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!