A Java multi-threaded implementation of the Variable Speeds algorithm for leader election in a unidirectional synchronous ring.
-
Open Eclipse
-
Select File -> Import -> General -> Open projects from File System -> Navigate to Directory -> Finish
-
Open the file VariableSpeeds.java. Right click -> Run as Java Application
-
You can modify the input.dat file to change the number of processes or the UIDs of the process.