Top "Memory-model" questions

For questions on memory ordering models at the programming language level (above the ISA or machine language level).

C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?

C++11 introduced a standardized memory model, but what exactly does that mean? And how is it going to affect C++ …

c++ multithreading c++11 language-lawyer memory-model
Atomic pointers in c++ and passing objects between threads

My question involves std::atomic<T*> and the data that this pointer points to. If in thread 1 I …

c++ multithreading c++11 atomic memory-model
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
Is synchronizing with `std::mutex` slower than with `std::atomic(memory_order_seq_cst)`?

The main reason for using atomics over mutexes, is that mutexes are expensive but with the default memory model for …

c++ c++11 concurrency memory-model compare-and-swap
Peterson algorithm in Java?

Is there example implementation of Peterson algorithm for mutual exclusion in Java?

java algorithm concurrency thread-safety memory-model
c++, std::atomic, what is std::memory_order and how to use them?

Can anyone explain what is std::memory_order in plain English, and how to use them with std::atomic<&…

c++ multithreading atomic memory-model stdatomic
python threading: memory model and visibility

Does python threading expose issues of memory visibility and statement reordering as Java does? Since I can't find any reference …

python multithreading memory-model
How do memory_order_seq_cst and memory_order_acq_rel differ?

Stores are release operations and loads are acquire operations for both. I know that memory_order_seq_cst is meant …

c++ c++11 memory-model stdatomic
C++11 memory_order_acquire and memory_order_release semantics?

http://en.cppreference.com/w/cpp/atomic/memory_order, and other C++11 online references, define memory_order_acquire and memory_…

c++ mutex atomic memory-model stdatomic
What is the C++03 memory model for concurrency?

What is the memory model for concurrency in C++03? (And, does C++11 change the memory model to support concurrency better?)

c++ concurrency c++03 memory-model