Subj : Re: Control CPU usage of a program? To : comp.programming From : gswork Date : Mon Aug 22 2005 03:03 am Davy wrote: > Hi all, > > I am writing programs of algorithms using C++ and C. When I run the > programs, > I found the programs take 100 percent of the CPU usage and I cannot run > any other program. > How to control the CPU usage percentage? > For example, let the program take 30 percent of the CPU usage? Thanks! > > BTW, the circumstance is Windows 2k and XP. If you're happy to let a windows service control the cpu% then consider something like http://threadmaster.tripod.com/ If you want your app to do it then it's going to be very Windows specific, perhaps a windows programming group or the windows sdk can help .