知识卡片

普通读书笔记卡 · 10294.a.4.a.2.c.1.a · 生成模型:未记录

三类共享寄存器

理解等级:中级

无并发写入时,读可以返回最近写入值。读与写重叠时,安全寄存器允许值域内任意值,规则寄存器限于上一次完成的写或与读重叠的写。原子寄存器还约束整个读写历史,使它看起来按操作区间内的瞬间逐个生效。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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