Question: 1 . Consider below Figure that shows three processes ( P 1 , P 2 , P 3 ) with events ( e 1 ,

1. Consider below Figure that shows three processes (P1, P2, P3) with events
(e1,e2,...e12) and messages communicating between them. Assume that
initial logical clock values are all initialized to 0.
a. List the Lamport Logical timestamps for each event shown in Figure.
Assume that each process maintains a logical clock as a single integer
value as a Lamport clock. Provide timestamps for each labeled event.
b. determine all the events that happen before event e8(as
per Lamports Happened-Before relation). Also determine the events
that are concurrent with event e8
2. Three computers, A, B, and C communicate using a protocol that
implements Lamport Vector clocks ,at the beginning all vector clocks are
set to [0,0,0,] the following sequence of events occurs:
A sends message M1 to B
C sends message M2 to B
B receives M2 before M1
B replies message M3 to C first, and then message M4 to A
After receiving message M3, C sends message M5 to A
After receiving message M5, A sends message M6 to B
After receiving message M6, B sends message M7 to A
The last message A receive is M4
Provide the Lamport vector clock timestamps for each of these events.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!