sched_setparam(pid, param)
Sets the scheduling parameters for the process specified by pid to param. If the value of pid is equal to zero, then the calling process is used.
sched_getparam(pid, param)
Gets the scheduling parameters of the process specified by pid into the structure param. If the value of pid is equal to zero, then the calling process is used.
sched_setscheduler(pid, policy, param)
Set the scheduling policy and parameters for the process specified by pid. If the value of pid is equal to zero, then the calling process is used.
sched_getscheduler(pid)
Returns the scheduling policy of the process specified by pid. If the value of pid is equal to zero, then the calling process is used.
sched_get_priority_max(policy)
Returns the maximal priority which may be used for the scheduling policy specified by policy.
sched_get_priority_min(policy)
Returns the minimal priority which may be used for the scheduling policy specified by policy.
sched_rr_get_interval(pid, interval)
Returns the time quantum into the structure interval of the process specified by pid. If the value of pid is equal to zero, then the calling process is used. The process must be running at SCHED_RR scheduling policy.
sched_yield()
Yields a processor voluntarily and gives other threads a chance to run without waiting for an involuntary preemptive switch.
sched_setaffinity_np(pid, size, cpuset)
Set the affinity mask specified by cpuset for the process specified by pid. At least one valid CPU must be set in the mask.
sched_getaffinity_np(pid, size, cpuset)
Get the affinity mask of the process specified by pid into the cpuset.