subject

A client is the only reader and writer of a data item X. Client moves between locations L1 and L2. A server at each location has a replica of the item X which also stores X's local version number (generation). The client reads and writes are always performed locally. A read operation R also returns the local version number of the item X. The initial version number of each copy is equal to 0. A write W increments the (local) version number by 1. PW is an update operation to the remote copy (e. g. after a local W). PW carries the version number of X and stores it with the update. The "" is the time line and the time grows from left to right. For each sub-problem below write the version number next to each R, W, and PW operation and answers the questions
1) Does the sequence of operations below provide monotonic-read consistency?
Explain why it does or does not. If your answer is no, can you add an operation to the sequence so that it does provide monotonic-read consistency (and explain why it does) Use this definition: the monotonic-read consistency guarantees that if a process accessed later time. version of at time t, it will never see an older version of x at
L1 W R P
L2 PW W R.
2) Does the sequence of operations below provide monotonic-write consistency?
Explain why it does or does not. If your answer is no, can you add operations to the sequence so that it does provide monotonic-write consistency (and explain why it does). Use this definition: monotonic-write consistency guarantees that a write is executed on the value of a variable that is the result of all the previous write operations.
L1 W R P
L2 P W R W

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 17:10, madams4450
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi, be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
image
Computers and Technology, 24.06.2019 06:30, toolazytobehuman
Me and category do i put them in because this is science
Answers: 1
image
Computers and Technology, 25.06.2019 02:30, asra44
One important thing in finding employment is to get your resume noticed and read. true or false
Answers: 2
image
Computers and Technology, 25.06.2019 09:30, cheesecake1919
Evaluate the following code segment. what is the value of count after execution? int count = 1; for(int outer = 0; outer < 4; outer++) for(int inner = 1; inner < 3; inner++) count++; 1 3 9 12 13
Answers: 1
You know the right answer?
A client is the only reader and writer of a data item X. Client moves between locations L1 and L2. A...

Questions in other subjects:

Konu
Mathematics, 02.12.2021 15:10