Skip to content

Commit

Permalink
Elaborated explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed Sep 25, 2023
1 parent 0ce52cd commit ba08827
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions examples/C/src/distributed/CALDecentralized.lf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@
*
* This program uses decentralized coordination, so if the processing latency plus communication
* latency exceeds the 200ms tolerance for inconsistency plus the 30ms tolerance for unavailability
* (the deadline), then the coordinator will preserve availability at the expense of consistency. If
* you remove the 200ms `after` delay, however, then you will need to increase the STP offset in the
* `Actuate` reactor to get proper decentralized control. Any number significantly larger than the
* 35ms processing latency should be sufficient to prevent STP violations.
* (the deadline), then the coordinator can preserve availability at the expense of consistency.
* However, in order to do that, you need to adjust the STP offset, which corresponds to the
* processing offset in the CAL theorem. If you remove the 200ms `after` delay, you will need to
* increase the STP offset in the `Actuate` reactor to get proper decentralized control. Any number
* significantly larger than the 35ms processing latency should be sufficient to prevent STP
* violations, but such a number will result in a deadline violation. Setting a lower number
* prevents the deadline violation, but at the cost of getting consistency violations.
*
* @author Edward A. Lee
*/
Expand Down

0 comments on commit ba08827

Please sign in to comment.