How to limit a process to a single CPU core?

Posted by Jonathan on Super User See other posts from Super User or by Jonathan
Published on 2011-07-12T13:20:58Z Indexed on 2012/12/15 23:08 UTC
Read the original article Hit count: 213

Filed under:
|
|

How do you limit a single process program run in a Windows environment to run only on a single CPU on a multi-core machine?

Is it the same between a windowed program and a command line program?

UPDATE:

  • Reason for doing this: benchmarking various programming languages aspects
  • I need something that would work from the very start of the process, therefore @akseli's answer, although great for other cases, doesn't solve my case

© Super User or respective owner

Related posts about Windows

Related posts about process