[wxPython-users] Can you limit CPU resources for the running app ?
Aaron Brady
castironpi at comcast.net
Wed Jan 16 14:49:26 PST 2008
-------------- Original message ----------------------
From: "Geoff Skerrett" <Geoff at teammsa.com>
> I have a wx app that does some image processing. Occasionally a user
> will select a large number of images (100+) and it can take 30-40mins to
> complete the process. All of the users are WindowsXP.
>
> Is there anyway to "restrict" the amount of cpu/resources that the
> application uses ?
I, over here, actually brought it up week ago first. Even basic multi-threading can run into problems. For starters, run this.
import thread
import time
def thA( idA ):
while 1:
print '%i'% idA,
thread.start_new_thread( thA, ( 1, ) )
thread.start_new_thread( thA, ( 2, ) )
time.sleep( 4 )
You can search it here:
http://blog.gmane.org/gmane.comp.python.wxpython
And here's a recent discussion:
http://thread.gmane.org/gmane.comp.python.wxpython/54892/focus=54893
More information about the wxpython-users
mailing list