Interlocked也提供了Exchange和CompareExchange方法,后者能够进行无锁的读-改-写(read-modify-write)操作,只需要额外增加一点代码。
基于28个网页-相关网页
不相符的对齐会破坏效能,因为它会引发读取修改写入 (read-modify-write) 作业.资料磁碟上的资料平行储存区宽度资料平行储存区宽度是由 mount(1M) 指令的 –o stripe=n 选项指定.
基于16个网页-相关网页
... read-modify memory 主读存储器 read-modify-write 读出--修正--写入 Radio Teletypewriter 无线电传打字机 ...
基于16个网页-相关网页
The atomic read-modify-write combination shows up in many concurrent algorithms.
许多并发算法中都显示了原子的读-修改-写组合。
Instead, it is shorthand for a sequence of three discrete operations: read-modify-write.
相反,它只是包含三个具体操作序列的简写方法:read-modify-write。
The code in Listing 2 implements a simple mutex, and the acquire() method is also an atomic read-modify-write operation.
清单 2 中的代码实现了简单的互斥, acquire() 方法也是原子的读-修改-写操作。
应用推荐