Subj : Re: pthread_create and memory To : comp.programming.threads From : Gio67 Date : Fri Mar 11 2005 12:55 pm Ok, the problem is that I set the stack size with value <= 16384 !! Now I set 16384 and the memory is OK !! thank you !! I have an other request: do you know any api of kernel to know the status of the threads ?? Bye "jd" ha scritto nel messaggio news:d0s3kp$6au$1@news.supermedia.pl... > > Thank you.I try but nothing change. > > Do you have the same problem ? > > Is possible that the problem depends from whitch library I use ? > > I don't think so. Most probably, as Giancarlo mentioned, you must set > variable (constant) MY_STACK_SIZE to be equar or greater than > PTHREAD_STACK_MIN. On my system it's equal to 16384, no less, no more. Och, > and you should read man page for pthread_attr_setstacksize() of course. > > JD > > .