xxxxx@osr.com wrote:
Whatever you do, be sure to think carefully through your decisions regarding affinitizing threads. It’s one of those things that people who are new to understanding Windows internals often jump on as a good idea, but when you REALLY sit back and think about it, you discover that it’s almost never a good idea at all. The Kernel usually does a far better job than you will of determining where to run threads to achieve best overall system throughput…
This is a critically important point. Some people seem to think that
assigning a thread affinity means their thread will be given total
ownership of that processor. It’s not true. You still compete for
processors, but now you are competing with an artificial handicap. The
actual effect of thread affinity is usually to reduce performance,
because all you’ve done is eliminate circumstances where your thread
COULD have run.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.