sched.h
Overview
Related Modules:
Description:
Provides process- and thread-related structures and functions (for example, obtaining scheduling policies and parameters).
Since:
1.0
Version:
1.0
Summary
Data Structures
| Data Structure Name | Description |
|---|---|
| sched_param | Defines process scheduling parameters. |
Functions
| Function Name | Description |
|---|---|
| sched_get_priority_max (int policy) | int Obtains the maximum static priority that can be used for a process. |
| sched_get_priority_min (int policy) | int Obtains the minimum static priority that can be used for a process. |
| sched_getparam (pid_t pid, struct sched_param param) | int Obtains scheduling parameters of a process. |
| sched_getscheduler (pid_t pid) | int Obtains the scheduling policy of a process. |
| sched_rr_get_interval (pid_t pid, struct timespec interval) | int Obtains the execution time limit of a process. |
| sched_setparam (pid_t pid, const struct sched_param param) | int Sets scheduling parameters related to a scheduling policy for a process. |
| sched_setscheduler (pid_t pid, int policy, const struct sched_param param) | int Sets a scheduling policy for a process. |
| sched_yield (void) | int Yields the running process. |
