Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

kuredoro/vclock_sim

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vector Clock Simulator

This small project is a simulator of a toy distributed system that employs the vector clock timestamps to order events.

It implements a ProcessPool struct that provides straightforward API for defining a scenario for interactions between these processes. The processes themselves, for simplicity of implementation, are not OS-level processes, but rather GO routines that communicate via Go's built-in channels instead of pipes.

How to run

Clone the reposity and inside the root of the repository call

$ go run .

This will execute two example scenarios inside the main function.

Reference

This article was used as a reference for the implementation: https://towardsdatascience.com/understanding-lamport-timestamps-with-pythons-multiprocessing-library-12a6427881c6

About

Vector clock algorithm simulation via gouroutines and channels.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.