[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


2.2.3.4 Stacksize Attribute

The stacksize attribute is the minimum size (in bytes) of the memory required for a thread's stack. To increase or decrease the size of the stack for the thread about to be created, call the pthread_attr_setstacksize routine, and use this attributes object when creating the thread and stack. You cannot change the size of a thread's stack after the thread has been created. See Section 3.4.2 for more information on sizing a stack.