Giter Site home page Giter Site logo

关于图9-4的解释 about ddia HOT 4 CLOSED

tigerinus avatar tigerinus commented on June 2, 2024
关于图9-4的解释

from ddia.

Comments (4)

yingang avatar yingang commented on June 2, 2024 1

按我的理解合并回答一下哈:

  1. 这里的其他请求是指图里Client A的第二次读取操作,该操作读取到了Client C的写入操作的结果(即将x从2改为4)
  2. 如果没有这个其他请求,Client B的最后一次读取操作和Client C的写入操作是并发的,读取到2或4都有可能,所以原文会说读取到2也是可以的
  3. 但因为已经有了这个其他请求,不管Client B和Client C的操作怎么并发,至少Client A已经看到了Client C的写入结果,那发生时间更晚的Client B读取操作也必须能看到这个结果,这样才能说满足线性一致性的要求

from ddia.

yingang avatar yingang commented on June 2, 2024 1

没有进一步的疑问,就先 close 这个 issue 了哈。

from ddia.

tigerinus avatar tigerinus commented on June 2, 2024

按我的理解合并回答一下哈:

  1. 这里的其他请求是指图里Client A的第二次读取操作,该操作读取到了Client C的写入操作的结果(即将x从2改为4)
  2. 如果没有这个其他请求,Client B的最后一次读取操作和Client C的写入操作是并发的,读取到2或4都有可能,所以原文会说读取到2也是可以的
  3. 但因为已经有了这个其他请求,不管Client B和Client C的操作怎么并发,至少Client A已经看到了Client C的写入结果,那发生时间更晚的Client B读取操作也必须能看到这个结果,这样才能说满足线性一致性的要求

所以这个图只是说明了一种不符合线性一致性的反例,并不是说明如何保证线性一致性的机制,对么?

from ddia.

yingang avatar yingang commented on June 2, 2024

所以这个图只是说明了一种不符合线性一致性的反例,并不是说明如何保证线性一致性的机制,对么?

嗯,我理解是的,具体如何设计和实现应该是后面的章节所讨论的内容。

from ddia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.