Created
June 2, 2014 03:58
-
-
Save jj1bdx/313c881a1e12ecfb7157 to your computer and use it in GitHub Desktop.
Get stacksize for each pthread
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 = %zu\n", stacksize); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment