Re: Prozesspriorität erhöhen

Andreas Kofler <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
On Thursday 02 December 2004 11:42, Hannes Bock wrote:
Hallo,
> 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?
Jo,
mit getpriority, setpriority, or nice Subroutine
siehe man://getpriority  (2)

> 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?
Meines Wissens nicht.

~ Andi

-- 
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.