Threads and static initialization.

wrzosk dprogr at gmail.com
Fri Dec 17 13:47:05 PST 2010


I believe that when new thread is being created, all static data is 
initialized inside new thread. What worries me is the fact, that many 
'mini' threads will initialize all static data inside application. This 
may be somewhat time consuming.
Maybe there should be a possibility to define 'Pure' thread that doesnt 
touch any static data, and in turn it could leave static constructors 
untouched.

What do you think


More information about the Digitalmars-d mailing list