Skip to content

Instantly share code, notes, and snippets.

@fillest
Created October 3, 2013 17:14
Show Gist options
  • Save fillest/d5274db93dfa7ff96cc6 to your computer and use it in GitHub Desktop.
Save fillest/d5274db93dfa7ff96cc6 to your computer and use it in GitHub Desktop.
size_t stacksize;
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_getstacksize (&attr, &stacksize);
printf("Default stack size = %d\n", stacksize);
exit(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment