This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: pthread concurrent thread limit


For what it's worth, we noticed the same thread limitation phenomenon
last December or January, but could never pin it on Cygwin and
therefore didn't notify the list.  The number of threads in our
application is rather dynamic, so we never tracked the limit down
to 52 threads, but that sounds about right.  We even engineered code
to get around this problem (by establishing a limited size thread pool
and queueing work to the pool if all threads were busy).

I just installed sp2 on w2k and the testsuite still fails.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/hh/winbase/prothred_4084.asp
says:

"The number of threads a process can create is limited by the available
virtual memory. By default, every thread has one megabyte of stack space.
Therefore, you can create at most 2028 threads. If you reduce the default
stack size, you can create more threads."

Greg

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]