Lamport Timestamps - Considerations

Considerations

For every two events and occurring in the same process, and being the timestamp for a certain event, it is necessary that never equals .

Therefore it is necessary that:

  1. The logical clock be set so that there is minimum of one clock "tick" (increment of the counter) between events and ;
  2. In a multiprocess or multithreaded environment, it might be necessary to attach the process ID (PID) or any other unique ID to the timestamp so that it is possible to differentiate between events and which may occur simultaneously in different processes.

Read more about this topic:  Lamport Timestamps