you can/should set it with pthread_attr_setstacksize
but
Code:
#include <pthread.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
size_t stacksize;
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_getstacksize (&attr, &stacksize);
printf("Default stack size = %d\n", stacksize);
}
(gary) ~/clean $ gcc -o stacksize stacksize.c -lpthread
(02:17am:09/01/05)
(gary) ~/clean $ ./stacksize
Default stack size = 8388608
that's what 8 MB or 8192 KB right ? somebody help me out