Solved

Maximum Threads Limit

Posted on 2002-07-02
3
273 Views
Last Modified: 2009-07-29
How many maximum number of threads can be created in Linux? i.e What is the Max Thread Limit in Linux?
0
Comment
Question by:nakya
3 Comments
 

Accepted Solution

by:
akhilesh_chadha earned 100 total points
ID: 7132193
hi nakya well u can just know how many threads u can create by writing a simple program

int main()
{
 int i=1 ;
 pid=fork()
for(;;)//infinite loop
 {
        if(pid<0)
        printf("maxmimum process are %d",i);
       
        if(pid==0)
         i++;
         else
       {
       wait(0);
       exit(0);
       }
  }  
} //main ends here  
0
 

Expert Comment

by:CleanupPing
ID: 9088979
nakya:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 2

Expert Comment

by:TheWeakestLink
ID: 9484823
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept comments from akhilesh_chadha as answer
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheWeakestLink
EE Cleanup Volunteer
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 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

13 Experts available now in Live!

Get 1:1 Help Now