Compare-And-Swap Pattern
Atomic compare-and-swap for lock-free algorithms
Demonstrates: CAS operation, lock-free updates, ABA problem awareness
Run in playground
|
|
Expected result (from fizz):
StateSpaceOptions: options:{max_actions:100 max_concurrent_actions:2}
Nodes: 15, queued: 0
Valid Nodes: 15 Unique states: 15
IsLive: true
PASSED: Model checker completed successfully