← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 10383.c.1 · 生成模型:未记录

逻辑时钟与物理时钟

理解等级:初级

逻辑时钟以单调增长的计数器表示进展。物理时钟从进程本地取得,以现实时间为参照。两者分别为事件次序和实际时间提供不同信息,使用时间值前要明白它来自哪种时钟。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Database Internals》Part II. Distributed Systems(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/part02.html#distributed_systems,段 11) - 结论依据:原文分别定义单调计数器和本地墙上时钟。 - 原始内容:Processes can access the time using a clock, which can be logical or physical. Logical clocks are implemented using a kind of monotonically growing counter. Physical clocks, also called wall clocks, are bound to a notion of time in