1pthread_setschedprio(3C) Standard C Library Functions pthread_setschedprio(3C)
2
3
4

NAME

6       pthread_setschedprio - dynamic thread scheduling parameters access
7

SYNOPSIS

9       cc -mt [ flag... ] file... -lpthread [ library... ]
10       #include <pthread.h>
11
12       int pthread_setschedprio(pthread_t thread, int prio);
13
14

DESCRIPTION

16       The  pthread_setschedprio()  function  sets the scheduling priority for
17       the thread whose thread ID is given by thread to  the  value  given  by
18       prio.
19
20
21       If  the  pthread_setschedprio() function fails, the scheduling priority
22       of the target thread is not changed.
23

RETURN VALUES

25       If successful, the pthread_setschedprio() function  returns  0;  other‐
26       wise, an error number is returned to indicate the error.
27

ERRORS

29       The pthread_setschedprio() function will fail if:
30
31       EINVAL    The value of prio is invalid for the scheduling policy of the
32                 specified thread.
33
34
35       EPERM     The caller does not have the appropriate  permission  to  set
36                 the priority to the value specified.
37
38
39       ESRCH     The  value  specified by thread does not refer to an existing
40                 thread.
41
42

ATTRIBUTES

44       See attributes(5) for descriptions of the following attributes:
45
46
47
48
49       ┌─────────────────────────────┬─────────────────────────────┐
50       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
51       ├─────────────────────────────┼─────────────────────────────┤
52       │Interface Stability          │Committed                    │
53       ├─────────────────────────────┼─────────────────────────────┤
54       │MT-Level                     │MT-Safe                      │
55       ├─────────────────────────────┼─────────────────────────────┤
56       │Standard                     │See standards(5).            │
57       └─────────────────────────────┴─────────────────────────────┘
58

SEE ALSO

60       pthread_getschedparam(3C), attributes(5), standards(5)
61
62
63
64SunOS 5.11                        1 Apr 2008          pthread_setschedprio(3C)
Impressum