Top "Thread-safety" questions

A piece of code is thread-safe if it only manipulates data structures in a way that allows consistent execution of this code by multiple threads.

Are Python built-in containers thread-safe?

I would like to know if the Python built-in containers (list, vector, set...) are thread-safe? Or do I need to …

python thread-safety
ConcurrentHashMap read and write locks

I am trying to find answer to these, but not able to find it on Google or in Java docs. …

java multithreading thread-safety concurrenthashmap
Thread safe StreamWriter C# how to do it? 2

So this is a continuation from my last question - So the question was "What is the best way to …

c# thread-safety writer
Are function static variables thread-safe in GCC?

In the example code void foo() { static Bar b; ... } compiled with GCC is it guaranteed that b will be created …

c++ gcc static initialization thread-safety
Are calls to Javascript methods thread-safe or synchronized?

I am still new to Javascript. I am developing a simple page where I click a button fetching a value …

javascript null thread-safety synchronized
Entity Framework Thread Safety

The context objects generated by Entity Framework are not thread-safe. What if I use two separate entity contexts, one for …

c# concurrency entity-framework-4 thread-safety datacontext
Simplest way for PyQT Threading

I have a GUI in PyQt with a function addImage(image_path). Easy to imagine, it is called when a …

python qt pyqt thread-safety python-watchdog
Use cases for RxJava schedulers

In RxJava there are 5 different schedulers to choose from: immediate(): Creates and returns a Scheduler that executes work immediately on …

java multithreading thread-safety rx-java rx-android
What do each memory_order mean?

I read a chapter and I didn't like it much. I'm still unclear what the differences is between each memory …

c++ c++11 thread-safety atomic memory-model
std::mutex performance compared to win32 CRITICAL_SECTION

how does the performance of std::mutex compared to CRITICAL_SECTION? is it on par? I need lightweight synchronization object (…

c++ stl synchronization thread-safety mutex