Question

In: Computer Science

Compare the following pairs of methods/techniques: Time stamping vs. optimistic methods in distributed systems

Compare the following pairs of methods/techniques:

Time stamping vs. optimistic methods in distributed systems

Solutions

Expert Solution

TIME STAMPING IN DISTRIBUTED SYSTEMS

The idea of time stamping is to come up with a mechanism that defines a partial order over events in a distributed system. It's based on the simplest model of distributed system, where a distributed system is a collection of processes. The processes only communicate by explicitly sending messages to each other. As different nodes or processes will typically not be perfectly synchronized, this algorithm is used to provide a partial ordering of events with minimal overhead, and conceptually provide a starting point for the more advanced vector clock method.Distributed algorithms such as resource synchronization often depend on some method of ordering events to function.

OPTIMISTIC METHOD IN DISTRIBUTED SYSTEMS

In these cases, the test for serializability is postponed to just before commit. Since the conflict rate is low, the probability of aborting transactions which are not serializable is also low. .

These are the phases involved in Optimistic Methods:

  • Begin: Record a timestamp marking the transaction's beginning.
  • Modify: Read database values, and tentatively write changes.
  • Validate: Check whether other transactions have modified data that this transaction has used (read or written). This includes transactions that completed after this transaction's start time, and optionally, transactions that are still active at validation time.
  • Commit/Rollback: If there is no conflict, make all changes take effect. If there is a conflict, resolve it, typically by aborting the transaction, although other resolution schemes are possible.

Related Solutions

Compare and Contrast France VS United States Quality of healthcare systems
Compare and Contrast France VS United States Quality of healthcare systems
Compare C++ speed to Python speed. To compare Execution Time of: c++ vs. Py : //...
Compare C++ speed to Python speed. To compare Execution Time of: c++ vs. Py : // this is c++ code // covert this code to python and compare their execution time #include<time.h> #include <iostream> using namespace std; #include <chrono> //for time using namespace std::chrono; void doSomething() //to insert any execution code here to measure its running time { int x=6795; // cout << "Enter 4-digit integer x ?\n"; cin >> x; for (int i = 1000; i < 2000000; i++)...
Draw a position-vs-time, velocity-vs-time, and acceleration-vs-time graph for each of the following objects: 1. A car...
Draw a position-vs-time, velocity-vs-time, and acceleration-vs-time graph for each of the following objects: 1. A car traveling in a straight line at a constant speed. 2. A ball rolling down a hill, getting faster as time goes by. 3. A rock that is tossed straight up in the air before coming back down to its starting point.
1. Compare and contrast the methods of Principle Components Analysis vs. admixture analysis (i.e., the ADMIXTURE...
1. Compare and contrast the methods of Principle Components Analysis vs. admixture analysis (i.e., the ADMIXTURE computer program) in the analysis of modern and ancient human DNAs. Describe the mathematical steps used to perform each of these methods, and what we can learn from the results. Why do many authors use both methods? What assumptions or limitations (if any) are required by each of these methods?
Compare the two digestive systems in animals (Monogastric vs Ruminant) and explain which one of them...
Compare the two digestive systems in animals (Monogastric vs Ruminant) and explain which one of them is a more efficient digestive system in animals and why? Justify your answer in 250 words.
Consider the following precedence chart: ACTIVITY PRECEDING ACTIVITIES OPTIMISTIC TIME (days) MOST LIKELY TIME (days) PESSIMISTIC...
Consider the following precedence chart: ACTIVITY PRECEDING ACTIVITIES OPTIMISTIC TIME (days) MOST LIKELY TIME (days) PESSIMISTIC TIME (days) A - 5 10 15 B - 10 12 14 C - 10 10 10 D B,C 2 4 6 E A 4 8 12 F A 4 8 12 G D,E 10 12 14 I F 4 8 12 J G 2 4 6 The total slack for activity C is __________
Consider the following precedence chart: ACTIVITY PRECEDING ACTIVITIES OPTIMISTIC TIME (days) MOST LIKELY TIME (days) PESSIMISTIC...
Consider the following precedence chart: ACTIVITY PRECEDING ACTIVITIES OPTIMISTIC TIME (days) MOST LIKELY TIME (days) PESSIMISTIC TIME (days) A - 5 10 15 B - 10 12 14 C - 10 10 10 D B,C 2 4 6 E A 4 8 12 F A 4 8 12 G D,E 10 12 14 I F 4 8 12 J G 2 4 6 The total slack for activity C is __________ a. 0 b. 2 c. 8 d. 4
Consider the following precedence chart: ACTIVITY PRECEDING ACTIVITIES OPTIMISTIC TIME (days) MOST LIKELY TIME (days) PESSIMISTIC...
Consider the following precedence chart: ACTIVITY PRECEDING ACTIVITIES OPTIMISTIC TIME (days) MOST LIKELY TIME (days) PESSIMISTIC TIME (days) A - 5 10 15 B - 10 12 14 C - 10 10 10 D B,C 2 4 6 E A 4 8 12 F A 4 8 12 G D,E 10 12 14 I F 4 8 12 J G 2 4 6 The total slack for activity F is __________ a. 8 b. 4 c. 2 d. 0
A reaction A-> B has the following time dependence for the concentration of [A] vs time....
A reaction A-> B has the following time dependence for the concentration of [A] vs time. For t=(0 s, 5 s, 10 s, 15 s, 25 s) the concentration of [A]=(30.00 M, 15.42 M, 10.38 M, 7.82 M, 5.24 M). The initial concentration of [A] is the value at t=0 s. (A)Calculate the values of the rate constant k assuming that the reaction is first order. - for all values k B)calculate the value of k if the reaction is...
A reaction A B has the following time dependence for the concentration of [A] vs time....
A reaction A B has the following time dependence for the concentration of [A] vs time. For t=(0 s, 5 s, 10 s, 15 s, 25 s) the concentration of [A]=(30.00 M, 16.85 M, 11.72 M, 8.98 M, 6.12 M). The initial concentration of [A] is the value at t=0 s. (A)Calculate the values of the rate constant k assuming that the reaction is first order. What is the value of k at 5 s? s-1 What is the value...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT