Thin Lock Implementation

Sascha Katzner sorry.no at spam.invalid
Tue Aug 19 07:51:22 PDT 2008


Steven Schveighoffer wrote:
> On a 32-bit system, the amount of addressable memory space and the
> stack size are the factors that limit the number of threads.  For
> example, if addressable space is 2GB, and each thread has a 1MB
> stack, that's 2000 threads max (this is the typical situation for
> Windows).

Not exactly right, since the stack is organized in 4kb pages and these
pages are not initialized until they are first used they usually require
a lot less than 1mb.

LLAP,
Sascha



More information about the Digitalmars-d mailing list