0

I just wanted to find out if setting cpu affinity ensure that the application runs only on that core ?

sharptooth
  • 167,383
  • 100
  • 513
  • 979

1 Answers1

0

Yes, that's what affinity masks are for. However you need this very rarely. The only reasonable use case I can imagine is restricting the number of cores depending on the end-user license agreement.

sharptooth
  • 167,383
  • 100
  • 513
  • 979
  • Also windows scheduler will try to resume thread to run on the same core (on which it was run before) if possible. – denisenkom Nov 17 '09 at 12:20