[pygtk] Subprocess and changing it's priority

Gian Mario Tagliaretti gianmt at gnome.org
Mon Feb 25 20:01:36 WST 2008


On Mon, Feb 25, 2008 at 11:49 AM, Vláďa <vladovi a atlas.cz> wrote:

Hi

>  Everything works fine. But I'd like to add an option to change priority
>  of the process I started. It is a video encoder, so it uses 100% of CPU
>  and takes hours to finish. So you might want to lower it's priority. Is
>  there an easy way do do it? Thank you.

Have a look at the reference manual for gobject.timeout_add
http://www.pygtk.org/docs/pygobject/gobject-functions.html#function-gobject--timeout-add

cheers
-- 
Gian Mario Tagliaretti


More information about the pygtk mailing list