Question

Show that with sufficiently many n-thread binary consensus objects and atomic registers one can implement n-thread...

Show that with sufficiently many n-thread binary consensus objects and atomic registers one can implement

n-thread consensus over n possible values. That is show that you can construct a an n-thread multivalue consensus object where there are only n possible values.

Homework Answers

Answer #1

Solution:--------
We agree on the value one bit at a time.The threads share an n-element array of atomic registers, and an array of log2n consensus objects.
Each thread announces its input in a shared array of atomic registers. At any time each thread has a preference, the value it is trying to convince the others to decide. Initially, each thread’s preferences is its input.
At round i, each thread uses the ith bit of its preference as input to the i-th binary consensus object. If it wins, it continues to the i+1 consensus with the same preference. If it loses, it scans the announcement array for an input that agrees with all the binary values decided in prior consensus rounds, and uses that value for its preference.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Please answer in JAVA IDS 401 Assignment 4 Deadline In order to receive full credit, this...
Please answer in JAVA IDS 401 Assignment 4 Deadline In order to receive full credit, this assignment must be submitted by the deadline on Blackboard. Submitting your assignment early is recommended, in case problems arise with the submission process. Late submissions will be accepted (but penalized 10pts for each day late) up to one week after the submission deadline. After that, assignments will not be accepted. Assignment The object of this assignment is to construct a mini-banking system that helps...
Atomic interactions can be modeled using a variety of potential energy approximations. One very common potential...
Atomic interactions can be modeled using a variety of potential energy approximations. One very common potential form is the Lennard-Jones 6:12 potential: U(r)=4ε[(σ/r)12 − (σ/r)6]. Where ε and σ are constants specific to a given material (note: these terms are NOT equivalent to stress and strain, but this is the standard notation for the L-J parameters). Here, r is the interatomic spacing given in units of Angstroms, and U(r) is given in units of eV/atom. A molecular dynamics simulation was...
This laboratory assignment involves implementing a data structure called a map. A map associates objects called...
This laboratory assignment involves implementing a data structure called a map. A map associates objects called keys with other objects called values. It is implemented as a Java class that uses arrays internally. 1. Theory. A map is a set of key-value pairs. Each key is said to be associated with its corresponding value, so there is at most one pair in the set with a given key. You can perform the following operations on maps. You can test if...
Hello, can you please be sure to show all work and I'll be sure to give...
Hello, can you please be sure to show all work and I'll be sure to give a thumbs up rating? Thanks!! <3 xxoo Ashley Mean of stock price = 1117.64 STDEV (Population) = 67.61 If a person bought 1 share of Google stock within the last year, what is the probability that the stock on that day closed within $50 of the mean for that year (round to two places)? (Hint: this means the probability of being between 50 below...
II(20pts). Short Problems a) The lowest energy of a particle in an infinite one-dimensional potential well...
II(20pts). Short Problems a) The lowest energy of a particle in an infinite one-dimensional potential well is 4.0 eV. If the width of the well is doubled, what is its lowest energy? b) Find the distance of closest approach of a 16.0-Mev alpha particle incident on a gold foil. c) The transition from the first excited state to the ground state in potassium results in the emission of a photon with  = 310 nm. If the potassium vapor is...
Design a FSM for a Vending Machine In this task, you will design a FSM for...
Design a FSM for a Vending Machine In this task, you will design a FSM for a simple (albeit strange) vending machine of office supplies. The vending machine sells three possible items, each at a different cost: Item Cost Pencil 10 cents Eraser 20 cents Pen 30 cents The vending machines accepts nickels (worth 5 cents), dimes (worth 10 cents), and quarters (worth 25 cents). Physically, it is only possible to insert a single coin at a time. The vending...
please can you make it simple. For example using scanner or hard coding when it is...
please can you make it simple. For example using scanner or hard coding when it is a good idea instead of arrays and that stuff.Please just make one program (or class) and explain step by step. Also it was given to me a txt.htm 1.- Write a client program and a server program to implement the following simplified HTTP protocol based on TCP service. Please make sure your program supports multiple clients. The webpage file CS3700.htm is provided. You may...
The Boeing Company, headquartered in Chicago, Illinois, is one of the two major producers of aircraft...
The Boeing Company, headquartered in Chicago, Illinois, is one of the two major producers of aircraft in the global market. The other major producer is European Airbus. Boeing produces three models in Everett, Washington: 747s, 767s, and 777s. The planes are all produced in the same building. At any one time, there may be as many as six planes in various stages of production. Obviously the building has to be fairly large to accommodate such a huge undertaking. In fact,...
Texas is home to more than one million undocumented immigrants, and most of them are stuck...
Texas is home to more than one million undocumented immigrants, and most of them are stuck in low-paying jobs. Meanwhile, the state also suffers from a lack of skilled workers. The Texas Workforce Commission estimates that 133,000 jobs are currently unfilled, many because employers cannot find qualified applicants (The Boston Globe, September 29, 2011). Texas was the first state to pass a law that allows children of undocumented immigrants to pay in-state college tuition rates if they have lived in...
Java question, Please answer everything. Thank you Answer the following questions as briefly (but completely) as...
Java question, Please answer everything. Thank you Answer the following questions as briefly (but completely) as possible: What is a checked exception, and what is an unchecked exception? What is NullPointerException? Which of the following statements (if any) will throw an exception? If no exception is thrown, what is the output? 1: System.out.println( 1 / 0 ); 2: System.out.println( 1.0 / 0 ); Point out the problem in the following code. Does the code throw any exceptions? 1: long value...