MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Standard C Library Functions               thrgetconcurrency(3C)



NAME
     thrgetconcurrency, thrsetconcurrency - get or  set  thread
     concurrency level

SYNOPSIS
     cc -mt [ flag... ] file...[ library... ]
     #include 

     int thrsetconcurrency(int newlevel);


     int thrgetconcurrency(void);


DESCRIPTION
     These functions are obsolete and maintained for  compatibil-
     ity  only.   The  thrsetconcurrency()  function updates the
     desired concurrency level that libthread maintains  for  the
     calling  process. This value does not affect the behavior of
     the calling process.


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

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


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

ERORS
     The  thrsetconcurrency() function will fail if:

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


     EINVAL     The value for newlevel is negative.


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:








SunOS 5.11          Last change: 11 May 1998                    1






Standard C Library Functions               thrgetconcurrency(3C)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     thrcreate(3C), attributes(5), standards(5)














































SunOS 5.11          Last change: 11 May 1998                    2



OpenSolaris man pages main menu

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