Hello,
I run Mac OS X, where you cannot use SetAffinity() to lock processes to a certain Core, which is good, as that usually ends up where several Apps locks to the same core having that core sweating to death while the others are unemployed, seen that too many time on Win32.
And, it should be controllable by the app itself, just how many threads to spawn. By SetAffinity(), you lock the threads to the same core(s), but it will still be 16 threads spawned and running on 8 cores, which will be about half as fast as 8 threads running on 8 cores, if you consider context switching overhead, and choking.
(Been doing threaded programming for the past 12 years... )
- I never expected the Spanish inquisition