Skip to content

Multiple nodes ordered events using timestamp of logical clock, totally ordered multicast, and totally ordered vector clocks.

Notifications You must be signed in to change notification settings

AjinkyaSalvi/logical-clock-synchronization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Clock Synchronization

  1. Program Details:

    (i) Date: 24th October, 2019 (ii) Language: Java

  2. Problem Statement:

    (i) Multiple nodes ordered events: a) Use timestamp of logical clock, b) Totally ordered multicast, and c) Totally ordered vector clocks.

    (ii) Distributed locking system which gives access of the database to only one node at a time.

  3. Code Execution:

    (i) To compile the above programs, change the directory of the Terminal or Command Prompt to the folder containing these files.

    (ii) Then, enter 'javac Server.java', 'javac Client.java' and 'javac ServerThread' to compile these files. You can only run these files after compiling them.

    (iii) Finally, to run these files correctly, first, run 'Server.class' by entering 'java Server' then run 'Client.class' by entering 'java Client'.

    (iv) Do not run 'ServerThread.class' file. As it will be called by 'Server.class'.

  4. Note:

    (i) For array passing, byte array can only process a small amount of data at a time. It fails when large data is passed to it.

    (ii) This program is coded for fixed number of nodes. Coding variable number of nodes is also simple. It can just be done by adding while loops.

About

Multiple nodes ordered events using timestamp of logical clock, totally ordered multicast, and totally ordered vector clocks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages