Quiz 7 Flashcards

1
Q

Causal relationships can be deduced by using

Absolute clock

Lamport clock

Vector clock

A

Vector clock

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

Consider the following sequence of events at processes p0, p1 and p2: where si and ri are corresponding send and receive events for i=1,2,3

What are the Lamport clock values for r1, s1, a, and s2?

p0: s1 . a . b

p1: c . r1 . s2

p2: d r2 . e

r1=1, s1=0, a=2, s2=3

r1=2, s1=1, a=2, s2=3

r1=1, s1=0, a=1, s2=2

r1=1, s1=1, a=2, s2=2

A

r1=2, s1=1, a=2, s2=3

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

Consider the following sequence of events at processes p0, p1 and p2: where si and ri are corresponding send and receive events for i=1,2,3

What are the Vector clock values for r1 and e?

p0: s1 . a . b

p1: c . r1 . s2

p2: d r2 . e

r1=(1 2 0), e=(1 3 3)

r1=(2 1 0), e=(3 1 1)

r1=(1 1 0), e=(2 0 2)

A

r1=(1 2 0), e=(1 3 3)

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

Which of the mutual exclusion algorithms has N points of failure?

Token-ring

Centralized

Distributed

Decentralized

A

Distributed

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

Centralized mutual exclusion algorithm may suffer from scalability problem

False

True

A

True

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

In clock synchronization:

Accuracy is keeping the deviation between the clocks of two machines in a distributed system within a specified bound

Precision is keeping the difference between the UTC and the clock for a machine bound to a threshold value

Accuracy is keeping the difference between the UTC and the clock for a machine bound to a threshold value

Precision is keeping the deviation between the clocks of two machines in a distributed system within a specified bound

A

Accuracy is keeping the difference between the UTC and the clock for a machine bound to a threshold value

Precision is keeping the deviation between the clocks of two machines in a distributed system within a specified bound

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

The idea behind Lamport’s logical clock is/are that:

Processes can use the order of occurrence of events rather than their absolute time occurrences

Processes can use the absolute timestamp to order their events

A

Processes can use the order of occurrence of events rather than their absolute time occurrences

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

Given two Lamport’s logical clocks C(a) and C(b) corresponding to events a and b respectively.

Which of the following statements can be true?

If events a and b happen in the same process, and C(a) < C(b), then a → b.

If a and b happen in different processes and C(a) < C(b) then a→b

If a is the sending of a message, and b is the receipt of that message, then a → b and C(a) < C(b)

A

If events a and b happen in the same process, and C(a) < C(b), then a → b.

If a is the sending of a message, and b is the receipt of that message, then a → b and C(a) < C(b)

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

Given two events a and z, with Lamport clocks C(a) and C(z) and their Vector clocks V(a) and V(z). What condition is necessary to conclude that event a happened before event z?

a happened before z if V(a) < V(z)

a happened before z if C(a) > C(z)

a happened before z if V(a) > V(z)

a happened before z if C(a) < C(z)

A

a happened before z if V(a) < V(z)

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

Which of the mutual exclusion algorithms requires 2.(N-1) messages for a process to enter its critical region where N is the total number of processes?

Decentralized

Token ring

Distributed

Centralized

A

Distributed

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