Skip to content

shibizhao/MutualExclusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mutual Exclusion

The repo is the course project of the distributed system.

Author: Minggui Teng, Bizhao Shi

Date: June, 2022

Lamport Algorithm for Mutual Exclusion Demo

python3 main.py --algo=LA --node_num=4 --runtime=2 --begin_port=20000

RA Algorithm for Mutual Exclusion Demo

python3 main.py --algo=RA --node_num=4 --runtime=2 --begin_port=30000

Parameters

--algo: RA, LA

--node_num: number of process

--runtime: number of request per node

--begin_port: socket port

About

Class Project of Distributed System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages