Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.21 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.21 KB

Distributed Systems Example

A token passing example of a distributed system

Installation

Single machine use

Download the zip file to a suitable place on your hard drive and extract the files.

Multiple machine use

Download and extract all but the Node.java file on the hard drive of one computer on your hard drive and extract the files. Place the Node.java file in a suitable place on the hard drive of the hard drive on a second machine.

Usage

Single machine use

Compile the files as follows

javac filename1.java filename2.java ... filenamen.java 

Then use two instances of the command line or terminal to run the Node and Coordinator programs e.g.

java Node
Multiple machine use

Use an instance of the command line or terminal to run the Node on Coordinator programs from the seperate installations.

Things to try

Experiment with running different numbers of nodes to see how the coordinator deals with the requests it receives.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GPLv3