Skip to content

Repository files navigation

Implementation of Leader Election using HS Algorithm


Objective : Simulation of HS algorithm for synchronous distributed system using Java threads.

Installation

git clone and compile using java

git clone https://github.com/varadhanr/Leader-Election-for-Distributed-System.git
cd Leader-Election-for-Distributed-System/src
javac src/MainClass.java

How to Compile and run

Using Gradle Build tool:

./gradlew build
./gradlew run
./gradlew test

With File as input:

javac src/main/java/hs/MainClass.java
java src/main/java/hs/MainClass src/main/java/hs/contents/input.txt

With User Input:

javac src/main/java/hs/MainClass.java
java src/main/java/hs/MainClass

Project Details

Course Name : Distributed Computing

Submission by : Madison Pickering (MAP170330), Prameela Parasa (PXP180046) and Varadhan Ramamoorthy (VRR180003)

Java Docs

Java docs

About

Implementation of Leader Election using HS Algorithm

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages