知识卡片
三类共享寄存器
无并发写入时,读可以返回最近写入值。读与写重叠时,安全寄存器允许值域内任意值,规则寄存器限于上一次完成的写或与读重叠的写。原子寄存器还约束整个读写历史,使它看起来按操作区间内的瞬间逐个生效。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 11. Replication and Consistency Shared Memory · 查看原书依据
For regular registers, we have slightly stronger guarantees: a read operation can return only the value written by the most recent completed write or the value written by the write operation that overlaps with the current read. In this
参考来源
- 位置:《Database Internals》Chapter 11. Replication and Consistency(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch11.html#idm46104530490760,段 57)
- 结论依据:原文按并发读写的返回约束分别定义 safe、regular 和 atomic。
- 原始内容:For regular registers, we have slightly stronger guarantees: a read operation can return only the value written by the most recent completed write or the value written by the write operation that overlaps with the current read. In this