Suppose I have a library with a global variable which is accessed for both Read and Write operations.
I am assuming the following:
- A statically-linked library will not be safe-to-use concurrently on different threads.
- A statically-linked library will be safe-to-use concurrently on different processes.
- A dynamically-linked library will not be safe-to-use concurrently on different threads.
- A dynamically-linked library will not be safe-to-use concurrently on different processes.
Are the assumptions above correct?
If it matters anything (although I suppose it doesn't), then I am coding in C++ and running over Windows.
Thanks