Manual Pages for UNIX Darwin command on man pthread_getschedparam
MyWebUniversity

Manual Pages for UNIX Darwin command on man pthread_getschedparam

PTHREADSCHEDPARAM(3) BSD Library Functions Manual PTHREADSCHEDPARAM(3)

NAME

pptthhrreeaaddsseettsscchheeddppaarraamm, pptthhrreeaaddggeettsscchheeddppaarraamm - thread scheduling parame-

ter manipulation

SYNOPSIS

##iinncclluuddee <>

int pptthhrreeaaddsseettsscchheeddppaarraamm(pthreadt thread, int policy, const struct schedparam *param); int pptthhrreeaaddggeettsscchheeddppaarraamm(pthreadt thread, int *policy, struct schedparam *param);

DESCRIPTION

The pptthhrreeaaddsseettsscchheeddppaarraamm() and pptthhrreeaaddggeettsscchheeddppaarraamm() functions set and

get the scheduling parameters of individual threads. The scheduling pol-

icy for a thread can either be SCHEDFIFO (first in, first out) or

SCHEDRR (round-robin). The thread priority (accessed via

param->schedpriority) must be at least PTHREADMINPRIORITY and no more

than PTHREADMAXPRIORITY.

RETURN VALUES

If successful, these functions return 0. Otherwise, an error number is returned to indicate the error. EERRRROORRSS pptthhrreeaaddsseettsscchheeddppaarraamm() will fail if: [EINVAL] Invalid value for policy. [ENOTSUP] Invalid value for scheduling parameters.

[ESRCH] Non-existent thread thread.

pptthhrreeaaddggeettsscchheeddppaarraamm() will fail if:

[ESRCH] Non-existent thread thread.

STANDARDS pptthhrreeaaddsseettsscchheeddppaarraamm() and pptthhrreeaaddggeettsscchheeddppaarraamm() conform to Version 2 of the Single UNIX Specification (``SUSv2'') BSD May 1, 2000 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™