Sets the stack size of a thread attribute object.
#include <pthread.h> int pthread_attr_setstacksize ( pthread_attr_t *attr, size_t stacksize);
(IN) Points to the attribute structure.
(IN) Specifies the size of the stack.
If successful, returns zero; otherwise returns a nonzero error code:
The pthread_attr_init function initializes the stack to the PTHREAD_STACK_MIN. If you want to modify the size of the stack, you must do so before you create a thread. Once a thread has been created with an attribute object, the stack size cannot be modified.