hw3 - P1 P2 P3 P1.1 P1.2 P1.3 P1.4 P1.5 P2.1 P2.2 P2.3 P2.4...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE586 (Spring 2010): Homework 3 Due by Feb 12, in class. P1 P2 P3 P1.1 P1.2 P1.3 P1.4 P1.5 P2.1 P2.2 P2.3 P2.4 P2.5 P3.1 P3.2 P3.3 P3.4 P3.5 Figure 1: Timeline for P1, P2, and P3 1. (70 points) Answer the following questions using Figure 1. 1. (10 points) List all the events e such that P1.1 “happened before” e . In addition list all the events f that are “concurrent” with P2.2. 2. (20 points) Assign timestamps to all the events in accordance with the logical clock algorithm. Initially, all the local clocks begin with 0. (Mark on Figure 1.) 3. (40 points) Assign timestamps to all the events in accordance with the vector clock algorithm. Initially, all the local clocks begin with 0. (Mark on Figure 2 below.)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: P1 P2 P3 P1.1 P1.2 P1.3 P1.4 P1.5 P2.1 P2.2 P2.3 P2.4 P2.5 P3.1 P3.2 P3.3 P3.4 P3.5 Figure 2: Timeline for P1, P2, and P3 1 2. (30 points) Consider an event A on P1, and an event B on P2, and an event C on P3. 1. Assume that logical clocks was used, and the time.A=5, time.B=5, and time.C=10. What can you say about the happened-before relationships between events A, B, and C. 2. Assume that vector clocks was used, and the time.A=[5,5,5], time.B=[2,5,5], and time.C=[2,7,10]. What can you say about the happened-before relationships between events A, B, and C. 2...
View Full Document

This document was uploaded on 05/02/2010.

Page1 / 2

hw3 - P1 P2 P3 P1.1 P1.2 P1.3 P1.4 P1.5 P2.1 P2.2 P2.3 P2.4...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online