Are constructors thread safe?


have simple question can not find answer on net. if thread constructs object in .net, possible read or writes object thread interfere in construction phase? have lock content of constructor?

thanks in beforehand , efforts.
best regards
mark ritter

mark ritter said:

i looked example, too. doubts came article double checked locking in c++ can happen reference creation precedes instance creation.



perhaps the alexandrescu , meyers article? microsoft clr 2.0 has stronger guarantees c++, esoterica involved in meyers article largely moot. see "double-check locking" here.
curt - http://www.codeneverwritten.com/


.NET Framework  >  Common Language Runtime Internals and Architecture



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'