En Wed, 11 Apr 2007 08:36:57 -0300, A.B., Khalid <[EMAIL PROTECTED]> escribió:
> On Apr 11, 2:38 am, [EMAIL PROTECTED] wrote: >> I have a application where I use different threads. actually all is >> working - BUT I just discovered that the [b]CPU is always 100 % [/ >> b]used. >> > You need your program to sleep a while to allow a switch to other > tasks. Like so: > > t = TestThread() > t.start() > > while (True): > time.sleep(0.01) > pass If all you want is to wait until the thread finishes, use t.join() instead of that infinite loop. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list