Objective : Simulation of HS algorithm for synchronous distributed system using Java threads.
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
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
Course Name : Distributed Computing
Submission by : Madison Pickering (MAP170330), Prameela Parasa (PXP180046) and Varadhan Ramamoorthy (VRR180003)