Sched
Scheduling policies and priorities.
Part of QuantumRT Real-Time Kernel.
Defines
-
SCHED_FIFO
FIFO scheduling policy.
-
SCHED_RR
Round-robin scheduling policy.
-
SCHED_SPORADIC
Sporadic scheduling policy. Not supported.
-
SCHED_OTHER
Other scheduling policy. Not supported.
Functions
-
int sched_get_priority_max(int policy)
Get maximum priority value for the specified scheduling policy.
- Returns:
Maximum priority value.
-
int sched_get_priority_min(int policy)
Get minimum priority value for the specified scheduling policy.
- Returns:
Minimum priority value.
-
int sched_yield(void)
Yield the processor to another thread that is ready to run.
- Returns:
Always 0.
-
int sched_getparam(pid_t pid, struct sched_param *param)
Not supported.
- Returns:
Always -1 and sets errno to ENOSYS.
-
int sched_rr_get_interval(pid_t pid, struct timespec *interval)
Not supported.
- Returns:
Always -1 and sets errno to ENOSYS.
-
int sched_setparam(pid_t pid, const struct sched_param *param)
Not supported.
- Returns:
Always -1 and sets errno to ENOSYS.
-
int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param)
Not supported.
- Returns:
Always -1 and sets errno to ENOSYS.