|
ginnOS
The reference: libc, the libraries and the kernel
|
process priorities: the nice value, -20 (the most CPU) to 19 (the least). More...
#include <sys/types.h>Go to the source code of this file.
Macros | |
| #define | PRIO_PROCESS 0 |
| #define | PRIO_PGRP 1 |
| #define | PRIO_USER 2 |
Functions | |
| int | getpriority (int which, id_t who) |
| the lowest nice value of the processes which and who name. | |
| int | setpriority (int which, id_t who, int value) |
| set the nice value of processes. | |
process priorities: the nice value, -20 (the most CPU) to 19 (the least).
ginnOS gives a process with a lower nice value a longer time slice.
| #define PRIO_PROCESS 0 |
| #define PRIO_PGRP 1 |
| #define PRIO_USER 2 |
| int getpriority | ( | int | which, |
| id_t | who ) |
the lowest nice value of the processes which and who name.
| int setpriority | ( | int | which, |
| id_t | who, | ||
| int | value ) |
set the nice value of processes.
only root may lower it.