views:

380

answers:

1

Hi,

I'm looking for a way to limit the CPU usage by any application on Windows 7 to 50%. I've tried searching the Internet for a way to do this, and it looks like this is an easy thing to do on Linux and Mac OS X (one command in the terminal) but I'm not sure how to do it on Windows 7. Any help would be much appreciated. Thanks!

Rohan

+2  A: 

You can't limit the CPU usage of a process on Windows as this resource is managed by the OS.

However, you can specify to run a process with a certain priority, e.g. to run below normal priority. The various scheduling priorities can be set using the SetPriorityClass API function.

Scheduling Priorities

0xA3