We have a bunch of command line utilities that use all the CPU
capacity available to them. Our customer has asked us to find
ways we might make these utilities more system friendly by
occassionally calling what they refered to as a win32 equivalent
of VB's (Visual Basic) doevents() function.

I googled this topic and found a Mark Hammond suggestion with
qualifications[1]:

win32gui.Pump(Waiting)Messages

Is there a recommended way to run our utilities in a more CPU
friendly way? I was thinking of calling time.sleep( P ) every N
iterations through our processing but I'm not clear on the pros
and cons of this technique vs. a strategy that proactively pumps
waiting messages.

Malcolm

[1]
http://mail.python.org/pipermail/python-win32/2005-October/003920
.html
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to