Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3B394468.CF7D7666@nc.rr.com> Date: Tue, 26 Jun 2001 22:26:48 -0400 From: Greg Smith X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Cygwin General MailList Subject: Re: pthread concurrent thread limit References: <3B37D1A6 DOT 39A2685 AT nc DOT rr DOT com> <03c701c0fdd7$82ddbde0$0200a8c0 AT lifelesswks> <3B37F19F DOT C9BCDA23 AT nc DOT rr DOT com> <003d01c0fe1c$1f7e3c80$0200a8c0 AT lifelesswks> <3B38CED1 DOT 45B44DBD AT trex DOT rtpnc DOT epa DOT gov> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/