1sched_yield(3C) Standard C Library Functions sched_yield(3C)
2
3
4
6 sched_yield - yield processor
7
9 #include <sched.h>
10
11 int sched_yield(void);
12
13
15 The sched_yield() function forces the running thread to relinquish the
16 processor until the process again becomes the head of its process list.
17 It takes no arguments.
18
20 If successful, sched_yield() returns 0, otherwise, it returns −1, and
21 sets errno to indicate the error condition.
22
24 No errors are defined.
25
27 See attributes(5) for descriptions of the following attributes:
28
29
30
31
32 ┌─────────────────────────────┬─────────────────────────────┐
33 │ATTRIBUTE TYPE │ATTRIBUTE VALUE │
34 ├─────────────────────────────┼─────────────────────────────┤
35 │Interface Stability │Committed │
36 ├─────────────────────────────┼─────────────────────────────┤
37 │MT-Level │MT-Safe │
38 ├─────────────────────────────┼─────────────────────────────┤
39 │Standard │See standards(5). │
40 └─────────────────────────────┴─────────────────────────────┘
41
43 librt(3LIB), sched.h(3HEAD), attributes(5), standards(5)
44
45
46
47SunOS 5.11 5 Feb 2008 sched_yield(3C)