thr_setconcurrency man page on SunOS

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
SunOS logo
[printable version]

thr_getconcurrency(3C)	 Standard C Library Functions	thr_getconcurrency(3C)

NAME
       thr_getconcurrency,  thr_setconcurrency - get or set thread concurrency
       level

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

       #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
       that libthread maintains 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. Other‐
       wise, 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(5) for descriptions of the following attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       ├─────────────────────────────┼─────────────────────────────┤
       │MT-Level		     │MT-Safe			   │
       └─────────────────────────────┴─────────────────────────────┘

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

SunOS 5.10			  11 May 1998		thr_getconcurrency(3C)
[top]

List of man pages available for SunOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net