Posts
![SingleThreadedAdditionEng](https://www.modernescpp.com/wp-content/uploads/2016/09/SingleThreadedAdditionEng.png)
My Conclusion: Summation of a Vector in three Variants
/
0 Comments
After I've calculated in three different ways the sum of a std::vector I want to draw my conclusions.
The…
![localVariable](https://www.modernescpp.com/wp-content/uploads/2016/09/localVariable.png)
Multithreaded: Summation with Minimal Synchronization
Until now, I've used two strategies to summate a std::vector. First, I did the whole math in one thread…
![gcc](https://www.modernescpp.com/wp-content/uploads/2016/08/gcc.png)
Thread-Safe Initialization of a Singleton
There are a lot of issues with the singleton pattern. I'm aware of that. But the singleton pattern is…
![sukzessiveOptimierungSequenzielleKonsistenzEng](https://www.modernescpp.com/wp-content/uploads/2016/08/sukzessiveOptimierungSequenzielleKonsistenzEng.png)
Ongoing Optimization: Sequential Consistency with CppMem
With atomic data types, you can tailor your program to your needs and optimize it. But now we are in…
![FullFence](https://www.modernescpp.com/wp-content/uploads/2016/07/FullFence.png)
Fences are Memory Barriers
The key idea of a std::atomic_thread_fence is to establish synchronization and ordering constraints between…
![criticalRegion](https://www.modernescpp.com/wp-content/uploads/2016/07/criticalRegion.png)
Acquire-Release Semantic
With the acquire-release semantics, the memory model gets very thrilling. Because now, we do not have…
![producerConsumer](https://www.modernescpp.com/wp-content/uploads/2016/07/producerConsumer.png)
Sequential Consistency applied
I have introduced In the post Sequential Consistency the default memory model. This model, in which all…
![atomicOperationsReadWriteEng](https://www.modernescpp.com/wp-content/uploads/2016/06/atomicOperationsReadWriteEng.png)
Synchronization and Ordering Constraints
In this post, our tour through the c++ memory model goes one step deeper. Until now, the posts were only…
Atomics
In addition to booleans, there is atomics for pointers, integrals, and user-defined types. The rules…
![twoAtomics](https://www.modernescpp.com/wp-content/uploads/2016/06/twoAtomics.png)
Sequential Consistency
The atomics are the base of the C++ memory model. Per default, sequential consistency is applied.
The…