• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 281
  • Last Modified:

Maximum Threads Limit

How many maximum number of threads can be created in Linux? i.e What is the Max Thread Limit in Linux?
0
nakya
Asked:
nakya
1 Solution
 
akhilesh_chadhaCommented:
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
 
CleanupPingCommented:
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
 
TheWeakestLinkCommented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now