Building Block 5: Lock-Free Approach
摘要
We have reviewed various concurrency primitives in C++ in the previous chapters, all of which revolve around the same concept: using locking mechanisms to protect shared data or resources, ensuring that different threads don’t access them in unintended ways. In this chapter, however, we will explore lock-free approach which is a completely different mechanism.