----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: sndshreeman Message 13 in Discussion Hi Mrinal, The hashtable one you given is good for the scenario you have described but remember that veen those are also not thraed safe.(you can refer msnd that Icollection interface are also not inheerently thraed safe).Now coming to ur delegating the execution to different thraed is also not a feasible option for the singleton model . Now comign to ur question all static method are mot thraed safe and you need to implement synchronization on the same.Going further in the msdn sample given for implementign singleton in c# you found there are options that is the use of volatile and double checking are few options for handling the multithraeding issue .Further if you go through the links i have given here you can get the regd same . the post of brad abram's regd the volatile memory barrier is avery useful one for the same. Implementing Singleton in C# Exploring the Singleton Design Pattern volatile and MemoryBarrier()... designpatternGOF-singleton The "Double-Checked Locking is Broken" Declaration memorymodel .Net singleton pattern multi-threading issue... speaking of singleton http://www.yoda.arachsys.com/csharp/threads/ thanks shreeman ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDOTNET/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
