Lock-Free Algorithms: Atomic Integer Operations
They are the building blocks for lock free algorithms. Modern CPUs supports them. They are slower than the non-atomic ones, but much faster than using locks.
Let's use compare-and-swap as an exampl
转载
2013-06-27 16:15:14 ·
394 阅读 ·
0 评论