Thread safety classes

Asked 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 ...


j m filipowicz
I think that everything depends on the application logic. I had to use both semaphores, mutexes, and critical sections.
With double checked locking, the keyword volatile solves the problem when writing a C # application.
Advise a program for timing :: Chrome and Google Bookmarks :: Calculate height (in pixels) of an NSTextField in Cocoa? :: OOP syntax in js and using prototype :: Opera 10.61 (Linux), jQuery and stylized file-input [Solved]
Leave Repply forThread safety classes
Useful Links