/VectorClock

Implementation of Vector Clock in Python

Primary LanguagePython

Vector Clock

A vector clock is an algorithm for generating a partial ordering of events in a distributed system and detecting causality violations. Just as in Lamport timestamps, interprocess messages contain the state of the sending process's logical clock. A vector clock of a system of N processes is an array/vector of N logical clocks, one clock per process; a local "smallest possible values" copy of the global clock-array is kept in each process, with the following rules for clock updates:

Prerequisites

  • Python 3.x

Screenshots

vector_clock

Contribute

Contributions are always welcome!

Contributors