Logical time and logical clocks Flashcards

1
Q

Why is Logical time and logical clocks a necessity? (3 reasons)

A

From the point of view of any single process, events are ordered uniquely by times shown on the local clock.

♦ Cannot synchronise clocks perfectly across a distributed system

♦ Cannot use physical time to order any arbitrary pair of events occurring within it

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

Define an event

A

the occurrence of a single action that a

process carries out as it executes

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

How can process pi order it’s sequence of events?

A

The sequence of events with a process pi can be placed in a single total ordering, denoted by the relation →i

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

Describe the scheme similar to physical causality used to order some of the events that occur at different processes (2 parts)

A

If two events occur at the same process pi(i=1, 2, …, N), then they occur at the order
→i (the order that the process observes them)

Whenever a message is sent between processes, the event of sending the message occurs
before the event of receiving the message

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

Define the Happened-before relation

A

♦ HB1: if there exists a process pi: e →i e’  e → e’
♦ HB2: for any message m, send(m) → receive(m)
♦ HB3: if e, e’ and e” are events such that e → e’ and
e’ → e”, then e → e” (transitivity property)

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

When are events not related by happened-before relation?

A

if events happening in different processes, and no chain of messages intervenes between them

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

Define potential causality

A

If a → b, this does not mean that a (necessarily) caused b

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