MyWebUniversity.com Home Page
 



Darwin Mac OS X man pages main menu
PTHREADSCHEDPARAM(3)    BSD Library Functions Manual    PTHREADSCHEDPARAM(3)

NAME
     pthreadsetschedparam, pthreadgetschedparam -- thread scheduling parame-
     ter manipulation

SYNOPSIS
     ##include <>

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

     int
     pthreadgetschedparam(pthreadt thread, int *policy,
         struct schedparam *param);

DESCRIPTION
     The pthreadsetschedparam() and pthreadgetschedparam() 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
     SCHEDR (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.

ERORS
     pthreadsetschedparam() will fail if:

     [EINVAL]           Invalid value for policy.

     [ENOTSUP]          Invalid value for scheduling parameters.

     [ESRCH]            Non-existent thread thread.

     pthreadgetschedparam() will fail if:

     [ESRCH]            Non-existent thread thread.

STANDARDS
     pthreadsetschedparam() and pthreadgetschedparam() conform to Version 2
     of the Single UNIX Specification (``SUSv2'')

BSD                               May 1, 2000                              BSD
Darwin Mac OS X man pages main menu

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