The stacksize attribute is the minimum size (in bytes) of the memory required for a thread's stack. The default value is machine dependent. Set this attribute by calling the pthread_attr_setstacksize( ) routine.