Solved

pthread_create:: Cannot allocate memory

Posted on 2004-10-01
4
1,589 Views
Last Modified: 2013-12-06
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
0
Comment
Question by:ACMuir
4 Comments
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 12206429
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
 

Author Comment

by:ACMuir
ID: 12244986
I got it working now. I had to recompile glibc with 1024 threads.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 14028622
PAQed with points refunded (50)

modulo
Community Support Moderator
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now