Leader election in distributed computing
This is a Java Jar file and needs JRE 7 or above to run this. Usage:
First run the simulator in a console java -jar leader.jar
Then keep opening new consoles for each processes java -jar leader.jar P1
Where P1 is a unique process name.
Open more then one process console to check the leader election.
A sample output of this program is shown in attached screen capture image.