EnderUNIX Team.

EnderUNIX tips

Mail to My Friend , Home Page

[ C/C++ ]

"Get/set program scheduling priority" - Metin KAYA - (2008-07-24 20:48:23)   [7767]

To get/set the priority of a process, getpriority(int which, int who) / setpriority(int which, int who, int prio) system calls can be used respectively (here is "prio" must be between -20 and 20). In order to use these sytem calls, "sys/time.h" and "sys/resource.h" header files have to be included.

For detailed information, it's recommended to see the call's man pages.

Mail to My Friend , Home Page