Categorygithub.com/antonPalmFolkmann/DISYS_MandatoryAssignment2
repository
0.0.0-20211117080326-4994db1faadd
Repository: https://github.com/antonpalmfolkmann/disys_mandatoryassignment2.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

DISYS_MandatoryAssignment2

To run the program, do go run . in the Nodes folder. Open a terminal and run once for each node you wish to create. For the first node you open, write in the same port for both the node and leader node, for subsequent nodes, give a unique port, but declare the same leaderport.

When you have created your nodes, type /q in the terminal to queue up that node for the critical section. A node will print a message to let you know when it enters and leaves the critical section.

In the code, there are some remnants of an attempt to implement a leader election. This will not be used for now, but perhaps in the next assignment ;)