Three computers A, B, and C communicate using a protocol that implements the idea of Lamport...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Three computers A, B, and C communicate using a protocol that implements the idea of Lamport clocks (they include their clock timestamp in messages). For reference, if you need a reminder, recall that the three rules of Lamport's algorithm are: • Rule 1: At process i, increment C; after every local event. • Rule 2: To send message m at process i, include the current local time in the message, i.e., send(m, C), then apply apply Rule 1. • Rule 3: To receive a message (m;t) at process j, process j updates its local clock C, to be C₁ = max(C;;t + 1). At the beginning of time, all three computers begin with their logical clock set to zero (0). Later, the following sequence of events occurs: • A sends message M1 to B: "hi". After sending M1, A sends message M2 to C: "hi" • After receiving M1, B sends message M3 to C: "A said hi to me" • After receiving M3 first and then M2, C sends message M4 to A: "B is boring" (a) Indicate the time included with the messages as they are sent at each step. Send (M1, ) ) ) ) (b) Maintaining all clock states from the previous question, three ADDITIONAL messages are sent: • After receiving M4, A sends message M5 to B: "C is kind of random!" After receiving M5, B sends message M6 to A: "C is boring" • A receives message M6 Send (M2, Send (M3, Send (M4, After all of these messages have been sent and received, what time does each computer think it is? (c) Is this a relatively or totally ordered system? (d) Write out the vector time representation with the following messages as they are sent at each step. Send (M1, [ Send (M2, [ Send (M3, [ Send (M4, [ ]) 1) ]) 1) Three computers A, B, and C communicate using a protocol that implements the idea of Lamport clocks (they include their clock timestamp in messages). For reference, if you need a reminder, recall that the three rules of Lamport's algorithm are: • Rule 1: At process i, increment C; after every local event. • Rule 2: To send message m at process i, include the current local time in the message, i.e., send(m, C), then apply apply Rule 1. • Rule 3: To receive a message (m;t) at process j, process j updates its local clock C, to be C₁ = max(C;;t + 1). At the beginning of time, all three computers begin with their logical clock set to zero (0). Later, the following sequence of events occurs: • A sends message M1 to B: "hi". After sending M1, A sends message M2 to C: "hi" • After receiving M1, B sends message M3 to C: "A said hi to me" • After receiving M3 first and then M2, C sends message M4 to A: "B is boring" (a) Indicate the time included with the messages as they are sent at each step. Send (M1, ) ) ) ) (b) Maintaining all clock states from the previous question, three ADDITIONAL messages are sent: • After receiving M4, A sends message M5 to B: "C is kind of random!" After receiving M5, B sends message M6 to A: "C is boring" • A receives message M6 Send (M2, Send (M3, Send (M4, After all of these messages have been sent and received, what time does each computer think it is? (c) Is this a relatively or totally ordered system? (d) Write out the vector time representation with the following messages as they are sent at each step. Send (M1, [ Send (M2, [ Send (M3, [ Send (M4, [ ]) 1) ]) 1)
Expert Answer:
Answer rating: 100% (QA)
Lets analyze the events step by step and calculate the Lamport logical clock timestamps at each event for the given sequence of events At the beginning all three computers have their logical clocks se... View the full answer
Related Book For
Fundamentals of Physics
ISBN: 978-0471758013
8th Extended edition
Authors: Jearl Walker, Halliday Resnick
Posted Date:
Students also viewed these computer network questions
-
What medical evacuation assignment is necessary to provide the supporting medical unit and controlling headquarters with information to use in determining priorities for committing their evacuation...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Steve and Linda Hom live in Bartlesville, Oklahoma. Two years ago, they visited Thailand. Linda, a professional chef, was impressed with the cooking methods and the spices used in the Thai food....
-
Consider a uniform stream U∞ plus line sources (+m) at (+a, 0) and (−a, 0) and a single line sink (−2m) at (0, 0). Does a closed body shape appear? If so, plot its shape for...
-
State whether each of the following is an odd function, an even function, or neither. Prove your statements. (a) The sum of two even functions (b) The sum of two odd functions (c) The product of two...
-
What is priming? Why priming is required in a centrifugal pump?
-
Hawkeye Corporation?s balance sheet at December 31, 2019, is presented below. During 2020, the following transactions occurred. 1. On January 1, 2020, Hawkeye issued 1,200 shares of $40 par, 7%...
-
You are writing a legal memorandum and want to include the following list. Which numbering system would be your best option? The three requirements of standing are 1) injury in fact, 2) causation,...
-
Pulsar Optics produces medical lasers for use in hospitals. The accounts and their balances appear in the ledger of Pulsar Optics on April 30 of the current year as follows: Preferred 1% Stock, $120...
-
For each graph below, determine if it is Hamiltonian. G2 G3
-
Apple Valley Corporation uses a job cost system and has two production departments, A and B. Budgeted manufacturing costs for the year are: Direct materials Direct manufacturing labor Manufacturing...
-
A parallel-plate air-filled capacitor has a capacitance of 770 pF. If each of its plates has an area of 0.040 m, what is the separation? 4.6010-4 m If the region between the plates is now filled with...
-
Telstar Communications is going to purchase an asset for $660,000 that will produce $320,000 per year for the next four years in earnings before depreciation and taxes. The asset will be depreciated...
-
motion of the simple pendulum: + sin 0 = Te ml Consider the nonlinear equations of Derive the equilibrium points for the system and determine the corresponding small-signal linear models. To do that,...
-
What is the range of reaction distances for a car traveling at 70 miles per hour? (Use the lower end of average reaction time of 0.75 seconds and the upper end as 1.5 seconds.)
-
The value of C which gives the critical, damping in the given circuit is (a) 2 F (c) 8 F + 1 ww 5 U(t) 2 H 000 (b) 4F (d) 1 F
-
Fill in each blank so that the resulting statement is true. 83 + 103 = ______ .
-
The bent wire shown in Figure lies in a uniform magnetic field. Each straight section is 2.0 m long and makes an angle of = 60? with the x axis, and the wire carries a current of 2.0 A. What is the...
-
Two atmospheric sound sources A and B emit isotropically at constant power. The sound levels F of their emissions are plotted in Figure versus the radial distance r from the sources. The vertical...
-
Each of the uncharged capacitors in Figure has a capacitance of 25.0F. A potential difference of V = 4200 V is established when the switch is closed. How many coulombs of charge then pass through...
-
Figure 4 shows a scatterplot for the variables life expectancy and infant mortality in 16 countries. What type of correlation does it show? Does this correlation make sense? Does it imply causality?...
-
Figure 5 shows a scatterplot for the variables number of farms and mean farm size in the United States. Each dot represents data from a single year between 1950 and 2000; on this diagram, the earlier...
-
The scatterplots in Figure 6 show two weeks of data comparing the actual high temperature for the day with the same-day forecast (part a) and the three-day forecast (part b). Estimate the correlation...
Study smarter with the SolutionInn App