Subj : Re: Best possible stack size for a thread To : comp.programming.threads From : David Schwartz Date : Fri Sep 16 2005 05:53 am wrote in message news:1126855233.428611.14370@o13g2000cwo.googlegroups.com... > I am new to this group and am creating a pthread . The stacksize > allocated by the Linux OS (without any setstacksize) seems to be around > 2 MB ( calculated using getstacksize) . I need to know is such a large > stack size required for the thread to function . How can I find out a > optimal value for the stack size of a thread ?? . There is no harm in the stack being overly large so long as you don't run out of address space. Just leave the default. DS .