Reads and writes of atomic variables have the same memory semantics as read and write access to volatile variables.
读取和写入原子变量与读取和写入对可变变量的访问具有相同的存取语义。
2
Atomic variables have memory semantics similar to that of volatile variables, but because they can also be modified atomically, they can be used as the basis for lock-free concurrent algorithms.
After all, no matter how many times an entity object is updated in memory during an atomic Web flow, the SQL flush happening at the end of the flow only sees the final state of the entity instance.