DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sched(4)


sched -- execution scheduling for POSIX threads

SYNOPSIS

   #include <sched.h>

Description

The sched.h header defines the sched_param structure, which contains the scheduling parameters required for implementation of each supported scheduling policy. This structure contains at least the following member:
   int    sched_priority    process execution scheduling priority

Each process is controlled by an associated scheduling policy and priority. Associated with each policy is a priority range. Each policy definition specifies the minimum priority range for that policy. The priority ranges for each policy may overlap the priority ranges of other policies.

Three scheduling policies are defined. The three standard policies are indicated by the values of the following symbolic constants:


SCHED_FIFO
First in-first out (FIFO) scheduling policy.

SCHED_RR
Round robin scheduling policy.

SCHED_OTHER
Another scheduling policy.

The values of these constants are distinct.

The following is declared as a function and may also be declared as macros.

   int    sched_yield(void);

Inclusion of the sched.h header will make visible symbols defined in the header time.h.


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004