Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (n - p) pthread_attr_setschedparam(2)
SCHED_FG_NP
PRI_FG_MIN_NP to PRI_FG_MAX_NP
SCHED_BG_NP
PRI_BG_MIN_NP to PRI_BG_MAX_NP
The default priority is 24.
RETURN VALUES
If an error condition occurs, this function returns an integer value indicating the type of error.
Possible return values ares:
0 Successful completion.
[EINVAL] The value specified by the attr parameter is not a valid thread attributes object or
the value specified by param is invalid.
[ENOTSUP] An attempt was made to set the attribute to an unsupported value.
RELATED INFORMATION
Functions: pthread_attr_init(2), pthread_attr_getschedparam(2),
pthread_attr_setinheritsched(2), pthread_attr_setschedpolicy(2), pthread_create(2),
sched_yield(2), sched_get_priority_max(2), sched_get_priority_min(2).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specification. Interfaces documented on this
reference page conform to the following industry standards:
• IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header file spthread.h is an HP exception to the POSIX standard.
527186-003 Hewlett-Packard Company 5−35