Lamport Clocks Flashcards

1
Q

What is the purpose of the Lamport logical clock?

A

Simple mechanism to capture the happened-before ordering numerically

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a process pi logical clock, Li used for?

A

Li used to apply Lamport timestamps to events

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How are Lamport timestamps denoted?

A

The timestamp of event e at pi is denoted by Li(e)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How is the happened-before relation captured?

A

processes update their logical clocks and transmit the values of their logical clocks in messages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

State LC1

A

LC1: Li is incremented before each event is issued at process pi (Li = Li + 1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

State LC2 sends

A

LC2: When process pi sends message m, it piggybacks on m the value t = Li

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

State LC2 recieves

A

LC2: On receiving (m, t), a process pj computes

Lj = max(Lj, t) and then applies LC1 before timestamping the event receive(m)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

State the limitation of Lamport clocks

A

from L(e) < L(e’) we cannot conclude that e → e’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly