hpux man page for pthread_default_rsestacksize_np

Query: pthread_default_rsestacksize_np

OS: hpux

Section: 3t

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

pthread_default_rsestacksize_np(3T)									       pthread_default_rsestacksize_np(3T)

NAME
pthread_default_rsestacksize_np() - change the default stacksize.
SYNOPSIS
PARAMETERS
new_size The new default register stack size. old_size Pointer to where the old default register stack size is returned.
DESCRIPTION
The function allows an application to change the default value for the rsestacksize attribute. This function must be called before any threads have been created. The new default stack size is passed in the new_size parameter. If not NULL, the previous default stack size is returned in old_size. If new_size is zero, this function can be used (at any time) to query the current default stack size. On HP-UX, threads with default stack sizes are cached after they terminate. The next time a thread is created with a default stack size, a cached thread (and its stack) are reused. This can result in significant performance improvements for However, if the default register stack size is not appropriate for an application, it cannot take advantage of this performance enhance- ment. By using the function, the threads library will change the default stack size so that it matches the applications needs. This allows the application to utilize the performance benefit of cached threads. If either of the set register stack size APIs is called the register stack portion of the stack space will be that large instead of size determined by the implementation. The memory stack portion will be the remainder.
RETURN VALUE
Upon successful completion, returns zero. Otherwise, an error number is returned to indicate the error (the variable is not set).
ERRORS
If any of the following occur, the function returns the corresponding error number: The value specified by new_size is less than register stack required for a thread. The calling process has already created threads (this must be called before any threads are created).
AUTHOR
was developed by HP.
SEE ALSO
pthread_attr_getstacksize(3T), pthread_attr_setstacksize(3T), pthread_default_stacksize_np(3T).
STANDARDS CONFORMANCE
Pthread Library pthread_default_rsestacksize_np(3T)
Related Man Pages
pthread_attr_setstacksize(3) - linux
pthread_attr_getstacksize(3) - debian
pthread_default_stacksize_np(3t) - hpux
pthread_attr_setstacksize(3) - suse
thr_min_stack(3c) - sunos
Similar Topics in the Unix Linux Community
Software to register system performance
Can't create file bigger than 2GB with my application
How to identify maximum stack size?
Local variable in a C function is not getting created in stack when its compiled with GCC
Stomp has created two threads recently that can't be read