GithubHelp home page GithubHelp logo

incrementalccc's Introduction

IncrementalCCC

Incremental Causal Consistency Checking Algorithm in Java Implementation

输入格式

例:{:type :ok, :f :write, :value [b 1], :process 3, :time 19, :position 19, :link nil, :index 18}
  • :type

    表示该操作的类型,ok为成功返回的操作,invoke为只调用未能正确返回的操作,info为返回系统信息的操作;

  • :f

    表示执行的操作类型,write为写操作,read为读操作;(对于read-write history而言,只考虑这两种操作)

  • :value

    表示操作的执行参数,value[b 1]表示对变量b执行了值为1的操作;

    读入初始值的操作value为nil或-1

  • :process

    表示操作执行的线程id;

  • :time

    表示操作执行的时刻;

  • :position

    时钟的一种,暂时用不到;

  • :link

    表示在某个causal session里的上一个操作position;

  • :index

    表示操作下标,用于唯一全局标识某个操作,类似于ar序的作用;

说明

IncrementalCausalOrder中的函数只支持输入为DAG图的情况,否则,即表示输入的运行记录中存在CyclicCO的情况,不符合Causal的规约,直接返回不满足,无需进行下一步计算。(也即,在这样的情况下,后续计算出的邻接矩阵与传递闭包计算的结果肯定是不等的)

更新日志

2020.10.15 修复了如果存在ThinAirRead时无法正确计算其他CO相关的关系的bug;

incrementalccc's People

Contributors

dddddh avatar

Watchers

 avatar  avatar

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.