Subj : Re: pthread_attr_setstackaddr() on Linux To : comp.programming.threads From : David Butenhof Date : Wed Jun 08 2005 06:00 pm Haro Panosyan wrote: > These two POSIX standard functions > > pthread_attr_setstacksize(); > pthread_attr_setstackaddr(); Don't use pthread_attr_setstackaddr(). Although Linux inferred a relationship between stacksize and stackaddr, this was never intended or specified by the standard, and is not portable. You should use pthread_attr_setstack() instead, which specifies the BASE ADDRESS and SIZE of a region of memory to be used as the created thread's stack. This is portable and standard. -- Dave Butenhof, David.Butenhof@hp.com HP Utility Pricing software, POSIX thread consultant Manageability Solutions Lab (MSL), Hewlett-Packard Company 110 Spit Brook Road, ZK2/3-Q18, Nashua, NH 03062 .