DS_10_tut_4_sol - with the Lamport’s clock e1,1(1,0,0 e...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CS3283 Distributed Systems Tutorial 4 Time Synchronization II Some points for further considerations … - Differences between logical time and absolute time - The purposes, requirement and definition of maintaining logical time - Difference between partial ordering and total ordering - The rules for Lamport logical clock - Totally-ordered multicasting - The uses and limitation of Lamport logical clock - The rules for vector clock - The tradeoffs of using vector clock comparing with Lamport logical clock Question 1 What is the main limtation of the Lamport clock as comparing with the vector clock? Limitation: if time-stamp(e) > time-stamp(e’), we cannot tell which one are executed first. With the vector clock, we may be able to determine the precedence. Question 2 (i) Use the vector clock to assign time-stamps to the events of the three processes. Using the example events in the figure to explain the benefits and cost of using the vector clock comparing
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: with the Lamport’s clock. e1,1 (1,0,0); e 1,2 (2,1,0); e1,3 (3,1,0) e2,1 (0,1,0); e2,2 (0,2,2) e3,1 (0,0,1); e3,2 (0,0,2); e3,3 (3,1,3) Benefits: In Lamport logical clock, if time-stamp(e) > time-stamp(e’), we cannot tell which one are executed first. With the vector Lamport clock, we may be able to determine the precedence. For example, for events e1,1 with a clock reading of (1,0,0) and e3,1 with a clock reading of (0,0,1), we cannot tell their execution order. However, for events e3,2 and e2,2, based on their vector clock, we can determine that e3,2 is occurred before e2,2. The main cost of using vector clocks is higher costs in communication and management of the clocks. P1 P2 P3 e1,1 e1,2 e1,3 e2,1 e2,2 e3,1 e3,2 e3,3...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern