Thread safety classesAsked bytessa srebro
Who else implements thread safety in their classes when working with shared resources? Static class? Synchronization (mutexes, critical sections)? Static class members?
Do you pay attention to the so-called. "Double-checked locking" (notorious Singleton, for example). What are you doing?
Share your solutions ...
With double checked locking, the keyword volatile solves the problem when writing a C # application.