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


2.2.3.5 Guardsize Attribute

The guardsize attribute is the minimum size (in bytes) of the guard area for the stack of a thread. A guard area is a reserved area designed to help prevent or detect, or both, overflow of the thread's stack. The guard area is a region of memory that cannot be accessed by a thread. It is located adjacent to the last page in the thread's stack. To increase or decrease the size of the guard area for the thread about to be created, call the pthread_ attr_setguardsize_np routine.