← 返回卡片

原书出处

Designing Distributed Systems, 2nd Edition

10 Chapter 10. Ownership Election

Second Edition · 核验版本的摘录快照 · 导入于 2026-11-14T02:48:46.782Z

Compare-and-swap atomically writes a new value if the existing value matches the expected value. If the value doesn’t match, it returns false. If the value doesn’t exist and currentValue is not null, it returns an error. If you haven’t seen compare-and-swap before, it is basically an atomic

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch10.html

EPUB SHA-256:d6092c05a28fa00f75eb7c89905415def203cd92f0373323020ba665a9969602