Subj : Re: pthread_create returns 12 To : comp.programming.threads From : loic-dev Date : Wed Apr 06 2005 09:06 am Hi Marbac, > i am creating 10000+ threads to evaluate how many threads my > implementation allows (hope that it is equal to PTHREAD_THREADS_MAX) Perhaps check it first. > man pthreat_create tells me, that pthread_create has to return EAGAIN > which is 11. > > But in my implementation it returns 12 ... what does this error-code > stand for? Depends on which OS. On Linux, this mean "Out of Memory"... But independently on which *nix you are working, you can always use strerror() to get a human readable version of the error code! #include #include int main() { printf("%s\n",strerror(12)); return 0; } HTH, Loic. .