while using the singleton pattern, only one instance is created in multi threading? Using threadsafe singleton class will guarantee that only one instance is created. public sealed class Singleton { private static Singleton singleton = null; priv…
>
|
||||||
while using the singleton pattern, only one instance is created in multi threading? Using threadsafe singleton class will guarantee that only one instance is created. public sealed class Singleton { private static Singleton singleton = null; priv… Those who wants to know Design Patterns. Refer this book Head First Design Pattern |
||||||
Copyright © 2021 Microsoft Tech Arena - All Rights Reserved Powered by WordPress & Atahualpa |