Replies: 5 comments
-
The solution on Drive doesn't include "Remember that S might not have happened.". The solution on Drive: |
Beta Was this translation helpful? Give feedback.
-
I had the following idea. Maybe it's too complex, so improvements are welcome - of course. We know that Between them, a series of events happened, not necessarily passing through These events are in some order, and we may want to have them as follows: all events that are in Whenever we see 2 events Can we? After reordering, we pass through all of the 3 states we want. |
Beta Was this translation helpful? Give feedback.
-
In my opinion, this is perfectly fine: the idea is clear, and it's the correct answer to this exercise, not the one in Drive. |
Beta Was this translation helpful? Give feedback.
-
I believe the solution provided by @simonesestito is a good start, but it lacks an explanation on some crucial points, for example:
Here you can find a solution based on "Reachability between States in the Snapshot Algorithm" (pages 618-619) [1] Assume the system went through the sequence of events
Let's categorize the events in
Consider the following scenario: Thus, there is no causal relation between these two events, and they can be swapped without violating the happens-before relationship. By swapping such pairs of events, we can reorganize the sequence so that all pre-snapshot events appear at the beginning, and all post-snapshot events appear at the end. Consequently, the pre-snapshot events are denoted as Since this rearrangement does not affect the initial state References: [1] Coulouris, G. F., Dollimore, J., Kindberg, T., Blair G. (2012). Distributed systems: concepts and design. Pearson Education. |
Beta Was this translation helpful? Give feedback.
-
The previous solution is good and related to the question of consistent cut reachability, but it doesn't mention the last sentence of the exercise "Remember that |
Beta Was this translation helpful? Give feedback.
-
Exercise 12: Let$S_0$ be the global state when the Chandy-Lamport snapshot protocol starts, $S$ be the global state built by the protocol, and $S_1$ be the global state when the protocol ends. Show that $S$ is reachable from $S_0$ and that $S_1$ is reachable from $S$ . Remember that $S$ might not have happened.
Beta Was this translation helpful? Give feedback.
All reactions