From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA04481; Thu, 13 Dec 2001 19:23:40 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA04768 for ; Thu, 13 Dec 2001 19:23:39 +0100 (MET) Received: from mrwall.kal.com (mrwall.kal.com [194.193.14.236]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id fBDINcv04673; Thu, 13 Dec 2001 19:23:38 +0100 (MET) Received: from mrwall.kal.com [194.193.14.236] (HELO localhost) by mrwall.kal.com (AltaVista Mail V2.0J/2.0J BL25J listener) id 0000_0051_3c18_f323_c4da; Thu, 13 Dec 2001 18:27:47 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [Caml-list] Systhreads under Win/NT X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 content-class: urn:content-classes:message Date: Thu, 13 Dec 2001 18:18:44 -0000 Message-ID: <8E31D6933A2FE64F8AE3CC1381EEDCE71D0B8C@NT.kal.com> Thread-Topic: [Caml-list] Systhreads under Win/NT Thread-Index: AcF5iIaPmH0ycVBlTrWFxL4skk8HzAKehBXQ From: "Dave Berry" To: "Xavier Leroy" , "David McClain" , Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > From: Xavier Leroy [mailto:xavier.leroy@inria.fr] > Sent: 30 November 2001 10:20 >=20 > > I understand from reading the M$ documentation that Thread=20 > > Local Store is at least 64 words long. But not guaranteed > > to be any larger than this. Since > > your C code uses two global vars labeled as thread local, [...] > > ...doesn't this imply that there is a limit of 64=20 > > systhreads guaranteed in the system? >=20 > I understand this limitation as "at most 64 words of TLS *per=20 > thread*". There is definitely one system wide limit of 64 thread words in NT, and I think this is it. In Windows 2000 this was increased to 1088 (i.e. 64 + 1024). And yes, if your threads store local values, this does limit the number of threads you can use. One of our customers ran into this, and it was very difficult to track down. MS don't exactly hide this limit, but it's far from obvious. Dave. ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr