Distributed Systems, Algorithms, Computer Science, Database, Scalability.
HLC(f) = [p_f, l_f] where HLC(i) is the hybrid time when event i happens, then: Either p_e < p_f Or, p_e = p_f and l_e < l_f Hence, both e and f are comparable in lexicographic way. Implementation Notes The following implementation is not thread safe. You need to use read and write locks which are