[wxPython-users] Can you limit CPU resources for the running app ?
Christopher Barker
Chris.Barker at noaa.gov
Wed Jan 16 15:22:18 PST 2008
Geoff Skerrett wrote:
> 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.
This is an XP problem -- if one app can bring the system to a halt, then
the OS isn't handling that well. I don't know Windows well, but there
probably is a way to change how many resources a given app can use --
it's a system thing, though, not a wx thing. ON Linux, you'd look for
"nice" and "ulimit".
XP isn't that bad usually, though, so I suspect that maybe your issue
here is memory use, not CPU use. Perhaps you could re-structure the app
somewhat to reduce memory use?
> I have little experience with threading, but was wondering if this would
> solve the problem.
nope. threading is a way to divide work in one process -- you're dealing
with conflicts between processes here -- the OS needs to deal with that.
Have you looked to see how much memory and CPU your app is using? that
should give you a hint as to where to focus your efforts.
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list