Yes currently I am getting my feet wet on C# language specifications and possibly decipherable tutorials. I read multiple questions and answers/articles that talks about thread-safe singleton classes.
Here are the posts I already explored:
- Difference between static class and singleton pattern?
- Why use singleton instead of static class?
- Why choose a static class over a singleton implementation?
- how to make this c# class a singleton, thread safe
The more I read the more I get drown with the information. Can someone direct me to get a better understanding of
1) why do developers care about thread-safety?
2) how static class/singleton class are determined as not thread safe? (Sample code/sample tutorial to try out would be great as I love to learn these basics properly)