该操作是读-修改-写操作。
许多并发算法中都显示了原子的读-修改-写组合。
The atomic read-modify-write combination shows up in many concurrent algorithms.
清单 2 中的代码实现了简单的互斥, acquire() 方法也是原子的读-修改-写操作。
The code in Listing 2 implements a simple mutex, and the acquire() method is also an atomic read-modify-write operation.
应用推荐