出典: Read–modify–write 『フリー百科事典 ウィキペディア(Wikipedia)』 最終更新 16 February 2019, at 05:28 UTC、URL: https://en.wikipedia.org/
In computer science, read–modify–write is a class of atomic operations (such as test-and-set, fetch-and-add, and compare-and-swap) that both read a memory location and write a new value into it simultaneously, either with a completely new value or some function of the previous value. These operations prevent race conditions in multi-threaded applications. Typically they are used to implement mutexes or semaphores. These atomic operations are also heavily used in non-blocking synchronization... |