Chandy Lamport Algorithm.
- Run the following to generate the log file
go install github.com/DistributedClocks/GoVector
GoVector --log_type shiviz --log_dir /Users/arjunsunilkumar/GolandProjects/0sysdev_dec/chandy-lamport-go/govector --outfile final.log
-
Open the log file in ShiViz
-
Use the following regular expression to parse the log file
(?<host>\S*)\s+(?<clock>\{.*?\})\s+(?<event>.*)
- Input would look like this
- Revisit Advanced OS slides
- Watch the videos
- Make the concept clearer with an example and counterexample.
- I think some more correctness verification is needed. Also, need to make it generic for any number of processes.