|
MentOS
0.8.0
The Mentoring Operating System
|
Structures and functions for managing the scheduler. More...
Go to the source code of this file.
Classes | |
| struct | sched_param |
| Structure that describes scheduling parameters. More... | |
Typedefs | |
| typedef struct sched_param | sched_param_t |
| Structure that describes scheduling parameters. | |
Functions | |
| int | sched_setparam (pid_t pid, const sched_param_t *param) |
| Sets scheduling parameters. More... | |
| int | sched_getparam (pid_t pid, sched_param_t *param) |
| Gets scheduling parameters. More... | |
| int | waitperiod (void) |
| Placed at the end of an infinite while loop, stops the process until, its next period starts. The calling process must be a periodic one. More... | |
Structures and functions for managing the scheduler.
| int sched_getparam | ( | pid_t | pid, |
| sched_param_t * | param | ||
| ) |
Gets scheduling parameters.
| pid | pid of the process we want to retrieve the parameters. If zero, then the parameters of the calling process are returned. |
| param | The interpretation of the argument param depends on the scheduling policy of the thread identified by pid. |
| int sched_setparam | ( | pid_t | pid, |
| const sched_param_t * | param | ||
| ) |
Sets scheduling parameters.
| pid | pid of the process we want to change the parameters. If zero, then the parameters of the calling process are set. |
| param | The interpretation of the argument param depends on the scheduling policy of the thread identified by pid. |
| int waitperiod | ( | void | ) |
Placed at the end of an infinite while loop, stops the process until, its next period starts. The calling process must be a periodic one.