2008-01-23 21:15:50     How many threads do linuxthread support in one process?

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-01-23 21:15:50     How many threads do linuxthread support in one process?

Stevin Shen (CHINA)

Message: 50060    Hi all:

 

     How many threads do linuxthread support in one process? I saw somebody said that it supports 1024 threads in one process.  Is it right?

  

    Does anybody meet some problems when too more threads were created in one process?

  

TranslateQuoteReplyEditDelete

 

 

2008-01-23 21:31:27     Re: How many threads do linuxthread support in one process?

Yi Li (CHINA)

Message: 50062    For most of the case, the number of thread can be created is limited by available system memory, since each thread requires a stack.

 

You can write a small test app, creating as many  threads as possible, until it fails. You may limit thread stack size if you want to create more threads.

QuoteReplyEditDelete

 

 

2008-01-23 22:05:53     Re: How many threads do linuxthread support in one process?

Stevin Shen (CHINA)

Message: 50063    Thanks Li,

 

    Let us suppose that the system has enough memory, how many threads could be suppported by LinuxThread in one process?

TranslateQuoteReplyEditDelete

 

 

2008-01-23 22:35:11     Re: How many threads do linuxthread support in one process?

Mike Frysinger (UNITED STATES)

Message: 50065    the default max thread limit for linuxthreads is 1024

QuoteReplyEditDelete

 

 

2008-01-23 22:48:33     Re: How many threads do linuxthread support in one process?

Stevin Shen (CHINA)

Message: 50066    Thanks Mike.

Attachments

    Outcomes