Prozesspriorität erhöhen

Hannes Bock <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hi,

ich würde gern in einem Programm die Prozesspriorität festlegen.
z.B. wenn man es als root ausführt das dann die Priorität bei 5 oder 0 
liegt.
Gibt es denn da eine Möglichkeit das direkt im Quellcode zu machen?
Mit nice bzw. renice ist es etwas umständlich.
Und kann man die Priorität (vom Programm aus) auch auf 5 setzten wenn 
man es nicht als root ausführt?

Gruß
Hannes


-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.