delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/26/23:28:38

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <gsmith AT nc DOT rr DOT com>
X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Cygwin General MailList <cygwin AT cygwin DOT com>
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>

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019