question about the semantics of unshared variables

aki via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 16 02:15:42 PDT 2015


On Thursday, 16 July 2015 at 07:36:39 UTC, Jonathan M Davis wrote:
> Yes. Every thread gets a copy of the non-shared static 
> variables, and all of the non-shared static constructors get 
> run for each thread.
>
> - Jonathan M Davis

Thank you for reply. Now i know.
I did some test using C++ as you said, then there are some
different problem occurred. Anyway no need to make so
many threads. Please just forget it.

Aki.



More information about the Digitalmars-d-learn mailing list