thr_setconcurrency(3c) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

thr_setconcurrency(3c)

Standard C Library Functions                            thr_getconcurrency(3C)



NAME
       thr_getconcurrency,  thr_setconcurrency - get or set thread concurrency
       level

SYNOPSIS
       #include <thread.h>

       int thr_setconcurrency(int new_level);


       int thr_getconcurrency(void);

DESCRIPTION
       These functions are obsolete and maintained for compatibility only. The
       thr_setconcurrency() function updates the desired concurrency level for
       the calling process. This value does not affect  the  behavior  of  the
       calling process.


       The  thr_getconcurrency()  function  returns  the current value for the
       desired concurrency level.

RETURN VALUES
       The thr_getconcurrency() function always returns the current value  for
       the desired concurrency level.


       If  successful, the thr_setconcurrency() function returns 0. Otherwise,
       a non-zero value is returned to indicate the error.

ERRORS
       The thr_setconcurrency() function will fail if:

       EAGAIN    The specified concurrency level would cause a system resource
                 to be exceeded.


       EINVAL    The value for new_level is negative.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ MT-LevelMT-Safe


SEE ALSO
       thr_create(3C), attributes(7), standards(7)



Oracle Solaris 11.4               15 May 2014           thr_getconcurrency(3C)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3