imagine I write a library in C. Further, imagine this library to be used from a multi-threaded environment. How do I make it thread-safe? More specific: How do
You also should avoid static and global variables that can be modified avoiding synchronization code all over your module