pthread_attr_setinheritsched man page on OSF1

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

pthread_attr_setinheritsched(3)		       pthread_attr_setinheritsched(3)

NAME
       pthread_attr_setinheritsched - Changes the inherit scheduling attribute
       of the specified thread attributes object

SYNOPSIS
       #include <pthread.h>

       int pthread_attr_setinheritsched(
	       pthread_attr_t *attr,
	       int inheritsched );

LIBRARY
       DECthreads POSIX 1003.1c Library (libpthread.so)

STANDARDS
       Interfaces documented on this reference page conform to industry	 stan‐
       dards as follows:

       IEEE Std 1003.1c-1995, POSIX System Application Program Interface

PARAMETERS
       Thread  attributes  object  whose inherit scheduling attribute is to be
       modified.  New value for the inherit scheduling attribute. Valid values
       are  as	follows: The created thread inherits the scheduling policy and
       associated scheduling attributes of  the	 thread	 calling  pthread_cre‐
       ate(3). Any scheduling attributes in the attributes object specified by
       the pthread_create(3) attr argument are ignored during thread creation.
       This is the default value.  The scheduling policy and associated sched‐
       uling attributes of the created thread are  set	to  the	 corresponding
       values  from  the  attribute  object specified by the pthread_create(3)
       attr argument.

DESCRIPTION
       This routine changes the inherit scheduling  attribute  of  the	thread
       attributes  object specified by the attr argument. The inherit schedul‐
       ing attribute specifies whether a thread created	 using	the  specified
       attributes  object  inherits  the scheduling attributes of the creating
       thread, or uses the scheduling  attributes  stored  in  the  attributes
       object specified by the pthread_create(3) attr argument.

       The  first  thread  in  an  application	has  a	scheduling  policy  of
       SCHED_OTHER.	See	the	pthread_attr_setschedparam(3)	   and
       pthread_attr_setschedpolicy(3)  routines	 for more information on valid
       priority values and valid scheduling policy values, respectively.

       Inheriting scheduling  attributes  (instead  of	using  the  scheduling
       attributes  stored in the attributes object) is useful when a thread is
       creating several helper threads--that is, threads that are intended  to
       work  closely  with the creating thread to cooperatively solve the same
       problem. For  example,  inherited  scheduling  attributes  ensure  that
       helper threads created in a sort routine execute with the same priority
       as the calling thread.

RETURN VALUES
       If an error condition occurs, this routine  returns  an	integer	 value
       indicating  the	type  of error. Possible return values are as follows:
       Successful completion.  The value specified by the attr argument is not
       a valid thread attributes object, or the inheritsched argument contains
       an invalid value.  An attempt was made  to  set	the  attribute	to  an
       unsupported value.

ERRORS
       None

SEE ALSO
       Functions:    pthread_attr_init(3),    pthread_attr_getinheritsched(3),
       pthread_attr_setschedpolicy(3),		pthread_attr_setschedparam(3),
       pthread_create(3)

       Manuals: Guide to DECthreads and Programmer's Guide

					       pthread_attr_setinheritsched(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OSF1

List of man pages available for OSF1

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