Skip to content

Liveness specification - cold vs hot state #640

Answered by timmyjose
fintara asked this question in Q&A
Discussion options

You must be logged in to vote

My understanding is this - to check for liveness, we need the machine to transition to a non-hot state, right? In a simple case, this might be sufficiently expressed by having a hot state (or states) and the checker verifies that at the end of a round of operations, the machine winds up in a state which is not "hot". However, we can also mark certain states as cold to provide better assertions and tighter constraints - meaning that at the end of the round of operations, the machine ends up in one of the cold states (so a stronger guarantee than simply being in a non-hot state). The Two-Phase commit example has precisely that in its spec.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fintara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants