1sched.h(3HEAD) Headers sched.h(3HEAD)
2
3
4
6 sched.h, sched - execution scheduling
7
9 #include <sched.h>
10
11
13 The <sched.h> header defines the sched_param structure, which contains
14 the scheduling parameters required for implementation of each supported
15 scheduling policy. This structure contains the following member:
16
17 int sched_priority process execution scheduling priority
18
19
20
21 Each process is controlled by an associated scheduling policy and pri‐
22 ority. Associated with each policy is a priority range. Each policy
23 definition specifies the minimum priority range for that policy. The
24 priority ranges for each policy may overlap the priority ranges of
25 other policies.
26
27
28 The scheduling policies are indicated by the values of the following
29 symbolic constants:
30
31 SCHED_OTHER Processes are scheduled according to the traditional
32 Time-Sharing Class (TS) policy as described in prioc‐
33 ntl(2).
34
35
36 SCHED_FIFO Processes are scheduled in the Real-Time (RT) scheduling
37 class, according to the First-In-First-Out (FIFO) pol‐
38 icy. Processes scheduled to this policy, if not pre‐
39 empted by a higher priority or interrupted by a signal,
40 will proceed until completion.
41
42
43 SCHED_RR Processes are scheduled in the Real-Time (RT) scheduling
44 class, according to the Round-Robin (RR) policy. Pro‐
45 cesses scheduled to this policy, if not preempted by a
46 higher priority or interrupted by a signal, will execute
47 for a time period, returned by sched_rr_get_interval(3C)
48 or by the system.
49
50
51 SCHED_IA Processes are scheduled according to the Inter-Active
52 Class (IA) policy as described in priocntl(2).
53
54
55 SCHED_FSS Processes are scheduled according to the Fair-Share
56 Class (FSS) policy as described in priocntl(2).
57
58
59 SCHED_FX Processes are scheduled according to the Fixed-Priority
60 Class (FX) policy as described in priocntl(2).
61
62
63
64 The values of these constants are distinct.
65
66
67 Inclusion of the <sched.h> header will make visible symbols defined in
68 the header <time.h>.
69
71 priocntl(2), sched_get_priority_max(3C), sched_get_priority_min(3C),
72 sched_rr_get_interval(3C), time.h(3HEAD)
73
74
75
76SunOS 5.11 1 Apr 2008 sched.h(3HEAD)