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

What are distributed systems explain and discuss types of distributed systems. Compare and contrast distributed systems...
What are distributed systems explain and discuss types of distributed systems. Compare and contrast distributed systems and clusters. Similarities and differences between distributed memories and distributed systems.
Compare and Contrast France VS United States Quality of healthcare systems
Compare and Contrast France VS United States Quality of healthcare systems
1. The following time estimates are given for an activity: optimistic time = 16 days, most...
1. The following time estimates are given for an activity: optimistic time = 16 days, most likely time = 24 days and pessimistic time = 38 days. What is the expected time to complete this activity? Group of answer choices A. 16 B. 24 C. 38 D. 25 E. None of these answers are correct 2. The project duration is equal to the sum of the durations of all activities in a network. Group of answer choices True False 3.The...
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.The following time estimates are given for an activity: optimistic time = 16 days, most likely...
1.The following time estimates are given for an activity: optimistic time = 16 days, most likely time = 24 days and pessimistic time = 40 days. What is the variance of this activity? Group of answer choices A. 9 B. 16 C. 20 D. 24 E. None of these answers are correct 2.The expected waiting time in line is equal to the expected number of customers in line divided by the arrival rate Group of answer choices True False 3....
Contrast and compare the keys to "New" management vs. the "Traditional" management techniques. Do you consider...
Contrast and compare the keys to "New" management vs. the "Traditional" management techniques. Do you consider yourself a "New" manager, a "Traditional" manager, or somewhere in-between? Explain your answer.
Use the following project information: Activity Optimistic Time Estimate(weeks) Most Likely Time Estimates (weeks) Pessimistic Time...
Use the following project information: Activity Optimistic Time Estimate(weeks) Most Likely Time Estimates (weeks) Pessimistic Time Estimates (weeks) Immediate Predecessor(s) A 2 7 11 none B 2 5 9 A C 4 6 12 A D 5 6 10 B E 6 10 17 C F 3 4 6 D,E G 3 6 10 D,E H 5 7 10 F I 5 8 11 G J 3 3 3 H,I (a) Calculate the expected completion time for this project. (Round...
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.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT