sched.h File Reference

SCHED_RR

Scheduling policy

sched_yield ( void )

IMPORT_C intsched_yield(void)

yield processor. The sched_yield() function forces the running thread to relinquish the processor until it again becomes the head of its thread list. It takes no arguments.

Return Value
The sched_yield() function returns 0 if it completes successfully, or it returns a value of -1 and sets errno to indicate the error.

sched_get_priority_max ( int )

IMPORT_C intsched_get_priority_max(intpolicy)

The value of policy is one of the scheduling policy values defined in <sched.h>.

Return Value
If successful, the sched_get_priority_max() functions return the appropriate maximum values, respectively. If unsuccessful, they return a value of -1 and set errno to indicate the error.

sched_get_priority_min ( int )

IMPORT_C intsched_get_priority_min(intpolicy)

The value of policy is one of the scheduling policy values defined in <sched.h>.

Return Value
If successful, the sched_get_priority_min() functions return the appropriate minimum values, respectively. If unsuccessful, they return a value of -1 and set errno to indicate the error.