Bam! Your New Horizons X spacecraft has just suffered a massive strike from an asteroid! Alarms...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Bam! Your New Horizons X spacecraft has just suffered a massive strike from an asteroid! Alarms are going off all around you. And a dog can be heard yelping and a cat can be heard welping in agony, somewhere inside the spacecraft. You talk to Commander Brand and your colleague on board Pilot Rheya Cooper about this, and they counsel you that the animals are your imagination. Anyway, back to work... Commander Amelia Brand, Pilot Rheya Cooper, and you quickly figure out that the alarms are because of the mutual exclusion algorithm implemented in the system - if you can fix it, the spacecraft will return to normal operations. You see that the datacenter uses the Ricart-Agrawala algorithm for mutual exclusion but instead of using the usual and boring (Lamport timestamp, process id) pair, the algorithm instead uses (Lamport timestamp, FIFO local sequence number) pair, where FIFO local sequence number is the local sequence number of that event at that process. The rest of the Ricart-Agrawala algorithm remains unchanged. Your fellow astronaut says this algorithm, even without failures: a) violates safety, b) violates liveness, and c) does not satisfy causal ordering. Is he right on any of these counts (which ones)? Give a proof or counter-example. Bam! Your New Horizons X spacecraft has just suffered a massive strike from an asteroid! Alarms are going off all around you. And a dog can be heard yelping and a cat can be heard welping in agony, somewhere inside the spacecraft. You talk to Commander Brand and your colleague on board Pilot Rheya Cooper about this, and they counsel you that the animals are your imagination. Anyway, back to work... Commander Amelia Brand, Pilot Rheya Cooper, and you quickly figure out that the alarms are because of the mutual exclusion algorithm implemented in the system - if you can fix it, the spacecraft will return to normal operations. You see that the datacenter uses the Ricart-Agrawala algorithm for mutual exclusion but instead of using the usual and boring (Lamport timestamp, process id) pair, the algorithm instead uses (Lamport timestamp, FIFO local sequence number) pair, where FIFO local sequence number is the local sequence number of that event at that process. The rest of the Ricart-Agrawala algorithm remains unchanged. Your fellow astronaut says this algorithm, even without failures: a) violates safety, b) violates liveness, and c) does not satisfy causal ordering. Is he right on any of these counts (which ones)? Give a proof or counter-example.
Expert Answer:
Answer rating: 100% (QA)
A A Violates Safety The RicartAgrawala algorithm does not violate safety as it guarantees that only one process at a time can enter the critical section This is achieved by having each process broadca... View the full answer
Related Book For
Statistics The Exploration & Analysis of Data
ISBN: 978-1133164135
7th edition
Authors: Roxy Peck, Jay L. Devore
Posted Date:
Students also viewed these mathematics questions
-
N balls labeled 1 through N are placed in Box 1 while a Box 2 is initially empty. At each time instant, one of the N balls is chosen (with equally probability) and moved to the other box. Let X [k]...
-
N sources of current with different emf's are connected as shown in Fig. 3.40. The emf's of the sources are proportional to their internal resistances, i.e. ε = aR, where a is an assigned...
-
N = the set of natural numbers, W = the set of whole numbers, Z = the set of integers, Q = the set of rational numbers, I = the set of irrational numbers, and R = the set of real numbers. Classify...
-
Define pricing practices of tesla INC as well as market structure.
-
What is the relationship between HVAC and physical security? What four physical characteristics of the indoor environment are controlled by a properly designed HVAC system? What are the optimal...
-
The forces acting on an object weighing W units on an inclined plane positioned at an angle of Î with the horizontal (see figure) are modeled by µ W cos Î = W sin Î, where...
-
How to draft a demurrer?
-
A company buys a machine for $61,700 on January 1, 2008. The maintenance costs for the years 20082011 are as follows: 2008, $4,900; 2009, $4,700; 2010, $12,400 (includes $7,800 for cost of a new...
-
Lukow Products is investigating the purchase of automated equipment that will save $110,000 each year in direct labor and inventory carrying costs. This equipment costs $700,000 and is expected to...
-
The comparative balance sheet of Iglesias Inc. for December 31, 20Y3 and 20Y2, is as follows: Additional data obtained from an examination of the accounts in the ledger for 20Y3 are as follows: a....
-
What about negative and positive values on the cash from investing slide -- what causes negative values on this slide, and is this good, bad, or neutral if the figure is negative? Why? Question 2:...
-
What single sum of money occurring at t = 5 will be equivalent to a cash flow series consisting of \($7\),000 at t = 1, \($6\),000 at t = 2, \($5\),000 at t = 3, \($4\),000 at t = 4, \($3\),000 at t...
-
Using real-word examples, evaluate methods that might be used to reduce inflation.
-
Using real-word examples, discuss the Phillips curve in terms of the trade-off between inflation and unemployment.
-
Using real-word examples, discuss the extent to which demand-side policies are effective in reducing inflation.
-
One of the arguments for punitive damages (damages paid to the plaintiff in excess of actual damages) is that such damage payments compensate for the fact that lawsuits are not always filed, even if...
-
Photosynthesis by land plants leads to the fixation each year of about 1 kg of carbon on the average for each square meter of an actively growing forest. The atmosphere is approximately 20% O 2 and...
-
You have just begun your summer internship at Omni Instruments. The company supplies sterilized surgical instruments for physicians. To expand sales, Omni is considering paying a commission to its...
-
The article California State Parks Closure List Due Soon (The Sacramento Bee, August 30, 2009) gave the following data on x = number of visitors in fiscal year 20072008 and y = percentage of...
-
Research by the Food and Drug Administration (FDA) shows that acrylamide (a possible cancer-causing substance) forms in high-carbohydrate foods cooked at high temperatures and that acrylamide levels...
-
In an experiment to investigate the performance of four different brands of spark plugs intended for use on a 125-cc motorcycle, five plugs of each brand were tested, and the number of miles (at a...
-
Following is a probability density curve with the area between 0 and 1 and the area between 1 and 2 indicated. a. What proportion of the population is between 0 and 1? b. What is the probability that...
-
Use Table A.2 to find the area between z = 1.13 and z = 2.02. Z 0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 -0.8 -0.7 .2119 .2090 .2420 2389 -0.6 .2743 .2709 .2676 .2061 .2033 2358 .2327 .2643...
-
Use Table A.2 to find the area to the left of z = 0.25. Z 0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 -0.8 -0.7 .2119 .2090 .2420 2389 -0.6 .2743 .2709 .2676 .2061 .2033 2358 .2327 .2643 .2005...
Study smarter with the SolutionInn App