Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
RE: [Caml-list] Systhreads under Win/NT
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Dave Berry <Dave@k...>
Subject: RE: [Caml-list] Systhreads under Win/NT
> From: Xavier Leroy []
> 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.


Bug reports:  FAQ:
To unsubscribe, mail  Archives: