caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Dave Berry" <Dave@kal.com>
To: "Xavier Leroy" <xavier.leroy@inria.fr>,
	"David McClain" <barabh@qwest.net>, <caml-list@inria.fr>
Subject: RE: [Caml-list] Systhreads under Win/NT
Date: Thu, 13 Dec 2001 18:18:44 -0000	[thread overview]
Message-ID: <8E31D6933A2FE64F8AE3CC1381EEDCE71D0B8C@NT.kal.com> (raw)

> From: Xavier Leroy [mailto:xavier.leroy@inria.fr]
> Sent: 30 November 2001 10:20
> 
> > I understand from reading the M$ documentation that Thread 
> > 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 
> > systhreads guaranteed in the system?
> 
> I understand this limitation as "at most 64 words of TLS *per 
> 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


             reply	other threads:[~2001-12-13 18:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-13 18:18 Dave Berry [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-11-30  5:14 David McClain
2001-11-30 10:20 ` Xavier Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8E31D6933A2FE64F8AE3CC1381EEDCE71D0B8C@NT.kal.com \
    --to=dave@kal.com \
    --cc=barabh@qwest.net \
    --cc=caml-list@inria.fr \
    --cc=xavier.leroy@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).