/Distributed_Lock_Lamport_TimeStamp

Implementation of Ricart Agrawala locking algorithm in an emulated real-working distributed system

Primary LanguageJavaApache License 2.0Apache-2.0

Ricart Agrawala distributed lock in emulated distributed system

##System Model

  1. N processes (servers): emulated by N threads
  2. Messages are eventually delivered: used reliable TCP protocol
  3. Use Lamport TimeStamp to maintain the logical order

##TODO

  1. Failures can occur during message transition
  2. Servers can fail