PTHREAD_SETSCHEDPRIO
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
VERSIONS
ATTRIBUTES
CONFORMING TO
NOTES
SEE ALSO
COLOPHON
NAME
pthread_setschedprio − set scheduling priority of a thread
SYNOPSIS
#include <pthread.h>
int pthread_setschedprio(pthread_t thread, int prio);
Compile and link with −pthread.
DESCRIPTION
The pthread_setschedprio() function sets the scheduling priority of the thread thread to the value specified in prio. (By contrast pthread_setschedparam(3) changes both the scheduling policy and priority of a thread.)
RETURN VALUE
On success, this function returns 0; on error, it returns a nonzero error number. If pthread_setschedprio() fails, the scheduling priority of thread is not changed.
ERRORS
EINVAL |
prio is not valid for the scheduling policy of the specified thread. | ||
EPERM |
The caller does not have appropriate privileges to set the specified priority. | ||
ESRCH |
No thread with the ID thread could be found. |
POSIX.1-2001 also documents an ENOTSUP ("attempt was made to set the priority to an unsupported value") error for pthread_setschedparam(3).
VERSIONS
This function is available in glibc since version 2.3.4.
ATTRIBUTES
Multithreading
(see pthreads(7))
The pthread_setschedprio() function is
thread-safe.
CONFORMING TO
POSIX.1-2001.
NOTES
For a description of the permissions required to, and the effect of, changing a thread’s scheduling priority, and details of the permitted ranges for priorities in each scheduling policy, see sched(7).
SEE ALSO
getrlimit(2), sched_get_priority_min(2), pthread_attr_init(3), pthread_attr_setinheritsched(3), pthread_attr_setschedparam(3), pthread_attr_setschedpolicy(3), pthread_create(3), pthread_self(3), pthread_setschedparam(3), pthreads(7), sched(7)
COLOPHON
This page is part of release 3.69 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at http://www.kernel.org/doc/man−pages/.
More Linux Commands
manpages/monop.1.html
monop(1) - Mono Class Outline Viewer - Linux manual page....
Monop is a tool that allows you to view the outline of a class. You can see the signature of each member of the class. Use monop to explore 1.0 assemblies, use
manpages/gnutls_x509_crl_get_raw_issuer_dn.3.html
gnutls_x509_crl_get_raw_issuer_dn(3) - API function.........
This function will return a pointer to the DER encoded DN structure and the length. RETURNS a negative error code on error, and (0) on success. SINCE 2.12.0 REP
manpages/gnutls_dh_set_prime_bits.3.html
gnutls_dh_set_prime_bits(3) - API function - Linux man page
This function sets the number of bits, for use in an Diffie-Hellman key exchange. This is used both in DH ephemeral and DH anonymous cipher suites. This will se
manpages/mvwvline_set.3ncurses.html
mvwvline_set(3ncurses) - create curses borders or lines usin
The border_set and wborder_set functions draw a border around the edges of the current or specified window. These functions do not change the cursor position, a
manpages/avahi.hosts.5.html
avahi.hosts(5) - avahi-daemon static host name file.........
/etc/avahi/hosts is a file which may be used to define static host name to IP address mappings for multicast DNS. This is especially useful when publishing DNS-
manpages/set_item_init.3menu.html
set_item_init(3menu) - set hooks for automatic invocation by
These functions make it possible to set hook functions to be called at various points in the automatic processing of input event codes by menu_driver. The funct
manpages/aclocal-1.13.1.html
aclocal-1.13(1) manual page for aclocal 1.13.4 (Man Page)...
Generate aclocal.m4 by scanning configure.ac or configure.in OPTIONS --automake-acdir=DIR directory holding automake-provided m4 files --system-acdir=DIR direct
manpages/audit_request_status.3.html
audit_request_status(3) - Request status of the audit system
audit_request_status requests that the kernel send status structure describing various settings. The audit_status structure is as follows: struct audit_status {
manpages/systemd-readahead.8.html
systemd-readahead(8) Disk read ahead logic - Linux man page
systemd-readahead-collect.service is a service that collects disk usage patterns at boot time. systemd-readahead-replay.service is a service that replays this a
manpages/curl_easy_strerror.3.html
curl_easy_strerror(3) - return string describing error code
The curl_easy_strerror() function returns a string describing the CURLcode error code passed in the argument errornum. AVAILABILITY This function was added in l
manpages/yaz-url.1.html
yaz-url(1) - YAZ URL fetch utility - Linux manual page......
yaz-url is utility to get web content. It is very limited in functionality compared to programs such as curl, wget. The options must be precede the URL given on
manpages/pam_get_user.3.html
pam_get_user(3) - get user name (Library - Linux man page)
The pam_get_user function returns the name of the user specified by pam_start(3). If no user was specified it what pam_get_item (pamh, PAM_USER, ... ); would ha
