pthread_attr_create man page on Ultrix

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

pthread_attr_create(3thr)			     pthread_attr_create(3thr)

Name
       pthread_attr_create  -  Creates a thread attributes object that is used
       to specify the attributes of threads when they are created.

Syntax
       #include <pthread.h>

       int pthread_attr_create (attr)
       pthread_attr_t *attr;

Arguments
       attr    Thread attributes object created.

Description
       This routine creates a thread attributes object that is used to specify
       the  attributes of threads when they are created. The attributes object
       created by this routine is only used in calls to pthread_create.

       The individual attributes (internal fields) of  the  attributes	object
       are  set	 to  default values. (The default values of each attribute are
       discussed in the descriptions of the following routines.) Use the  fol‐
       lowing routines to change the individual attributes:

	     pthread_attr_setinheritsched

	     pthread_attr_setprio

	     pthread_attr_setsched

	     pthread_attr_setstacksize

       When an attributes object is used to create a thread, the values of the
       individual attributes determine the characteristics of the new  object.
       Attributes  objects  perform  similar to additional arguments to object
       creation. Changing individual attributes does not  affect  any  objects
       that were previously created using the attributes object.

Return Values
       If an error condition occurs, this routine returns -1 and sets errno to
       the corresponding error value.  Possible return values are as follows.

       Return	Error	   Description
       0		   Successful  comple‐
			   tion.

       -1	[ENOMEM]   Insufficient memory
			   exists  to	create
			   the		thread
			   attributes object.

       -1	[EINVAL]   The value specified
			   by attr is invalid.

						     pthread_attr_create(3thr)
[top]

List of man pages available for Ultrix

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