Re: control CPU usage

2009-09-20 Thread Dave Angel
kakarukeys wrote: On Sep 20, 10:57 pm, Dave Angel wrote: kakarukeys wrote: On Sep 20, 6:24 pm, Dave Angel wrote: Jiang Fung Wong wrote: Dear All, Thank you for the information. I think I've some idea what the problem is about after seeing the replies.

Re: control CPU usage

2009-09-20 Thread kakarukeys
On Sep 20, 10:57 pm, Dave Angel wrote: > kakarukeys wrote: > > On Sep 20, 6:24 pm, Dave Angel wrote: > > >> Jiang Fung Wong wrote: > > >>> Dear All, > > >>> Thank you for the information. I think I've some idea what the problem is > >>> about after seeing the replies. > > >>> More information abo

Re: control CPU usage

2009-09-20 Thread Dave Angel
kakarukeys wrote: On Sep 20, 6:24 pm, Dave Angel wrote: Jiang Fung Wong wrote: Dear All, Thank you for the information. I think I've some idea what the problem is about after seeing the replies. More information about my system and my script PIII 1Ghz, 512MB RAM,

Re: control CPU usage

2009-09-20 Thread kakarukeys
On Sep 20, 6:24 pm, Dave Angel wrote: > Jiang Fung Wong wrote: > > Dear All, > > > Thank you for the information. I think I've some idea what the problem is > > about after seeing the replies. > > > More information about my system and my script > > > PIII 1Ghz, 512MB RAM, Windows XP SP3 > > > The

Re: control CPU usage

2009-09-20 Thread Dave Angel
Jiang Fung Wong wrote: Dear All, Thank you for the information. I think I've some idea what the problem is about after seeing the replies. More information about my system and my script PIII 1Ghz, 512MB RAM, Windows XP SP3 The script monitors global input using PyHook, and calculates on the i

Re: control CPU usage

2009-09-19 Thread Jiang Fung Wong
Dear All, Thank you for the information. I think I've some idea what the problem is about after seeing the replies. More information about my system and my script PIII 1Ghz, 512MB RAM, Windows XP SP3 The script monitors global input using PyHook, and calculates on the information collected from

Re: control CPU usage

2009-09-19 Thread Dave Angel
kakarukeys wrote: Hi, When I am running a loop for a long time, calculating heavily, the CPU usage is at 100%, making the comp not so responsive. Is there a way to control the CPU usage at say 80%? putting a time.sleep(0.x) doesn't seem to help although CPU usage level is reduced, but it's unsta

Re: control CPU usage

2009-09-19 Thread Sean DiZazzo
On Sep 19, 9:17 am, kakarukeys wrote: > Hi, > > When I am running a loop for a long time, calculating heavily, the CPU > usage > is at 100%, making the comp not so responsive. Is there a way to > control the > CPU usage at say 80%? putting a time.sleep(0.x) doesn't seem to help > although CPU usag