Is singleton scope thread safe?



Is singleton scope thread safe?..

Answer / Vivekanand Sharma

By default, Singleton is not thread-safe because it relies on a single static instance. However, to ensure thread safety, you can use double-checked locking or the Enum approach.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Design Patterns Interview Questions

Tell us the kind of features that you add to your design.

3 Answers  


What do you do to ensure that your design is carried out perfectly from your end?

3 Answers  


. Tell us about the differences between desktop designing and mobile designing.

3 Answers  


When to Use a Factory Pattern?

3 Answers  


. Explain your area of focus.

1 Answers  


What are the main types of concurrency design patterns?

1 Answers  


What are the most important software design patterns?

1 Answers  


how many types of cookies in php

1 Answers  


Which design pattern is mostly used in net?

1 Answers  


Where should we use singleton design pattern?

1 Answers  


Is mvc is a design pattern?

1 Answers  


If a client does not like a design what will your approach be?

4 Answers  


Categories