{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

cop5615fa10quiz2Key - [Note that Vci[i only changes...

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

View Full Document Right Arrow Icon
Quiz 2 Key COP 5615 Fall 2010 1. In a system with N processes using vector clocks, (a) what does VCi[j] represent? (b) When and how does it change? 2. In a system with N processes using matrix clocks, (a) what does MCi[j,k] represent? (b)When and how does it change? KEY 1. (a) (2) VCi[j] represents Pi's knowledge about the number of events that have occurred at Pj. [VCi[i] represents exactly the number of events that have happened at Pi (since Pi knows this perfectly).] (b) (1) It changes only whenever Pi receives a message with a timestamp that has a larger value for its jth entry (i.e., TS[j] > VCi[j]), since the local vector clock is element wise merged with the timestamp by taking the maximum.
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: [Note that Vci[i] only changes whenever an event happens at Pi (local event, send message, or receive message). 2. (a) (1) MCi[j,k] represents Pi's knowledge of Pj's knowledge of the number of events that have happened at Pk. That is, Pi knows that Pj knows that at least MCi[j,k] events have happened at Pk. (b) (1) It changes only whenever Pi receives a message with a matrix timestamp that has a larger value for TS[j,k]. This indicates that the sender knows that Pj knows about more events at Pk than Pi knew that Pj knew about. Clear? [Note that MCi[i,*] is the same at Pi's vector clock.]...
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