pthread_create:: Cannot allocate memory

I have a multithreaded "c" program that seems to work perfect on some servers and gives me this error on other servers.
pthread_create:: Cannot allocate memory

I am running this from the command prompt on a linux Red Hat 9.0 server.
How can I solve this problem?
Brian
ACMuirAsked:
Who is Participating?
 
moduloConnect With a Mentor Commented:
PAQed with points refunded (50)

modulo
Community Support Moderator
0
 
owensleftfootCommented:
Have a look at /etc/security/limits.conf on the servers it wont run on and check "U", which is the max number of threads a user can open. Man limits.conf will give you more info.
0
 
ACMuirAuthor Commented:
I got it working now. I had to recompile glibc with 1024 threads.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.