Option to control the Maximum CPU usage

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
 
L

Luke Alcatel

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top