Option to control the Maximum CPU usage

  • Thread starter Thread starter KSMH
  • Start date Start date
K

KSMH

Hi all,
Greetings
Is there any option to set the maximum CPU usage . Due to my application
,CPU usage reaches 100%. So my machine is hanging.

My CPU Speed is 1GHZ and I like to know about the options available in
Windows or some other third party software to set the limit and feasibility
status.

Thank you,
Regards,
KSMH
 
I would try something simple first. Sprinkle Sleep(0) (or SleepEx if needed
for its functionality) calls throughtout your code. That will cause your
application to surrender its timeslice. Also make sure that your
application runs at a low priority.

LA
 
Back
Top