# Stjepan - Lock-Free Rust: Crossbeam in 2019 (Highlights) ![rw-book-cover|256](https://readwise-assets.s3.amazonaws.com/static/images/article3.5c705a01b476.png) ## Metadata **Cover**:: https://readwise-assets.s3.amazonaws.com/static/images/article3.5c705a01b476.png **Source**:: #from/readwise **Zettel**:: #zettel/fleeting **Status**:: #x **Authors**:: [[Stjepan]] **Full Title**:: Lock-Free Rust: Crossbeam in 2019 **Category**:: #articles #readwise/articles **Category Icon**:: 📰 **URL**:: [stjepang.github.io](https://stjepang.github.io/2019/01/29/lock-free-rust-crossbeam-in-2019.html) **Host**:: [[stjepang.github.io]] **Highlighted**:: [[2019-01-30]] **Created**:: [[2022-09-26]] ## Highlights - Our spinlocks are implemented as sequential locks, which means every lock has a stamp, an atomic integer that gets incremented on every write operation. Read operations load the stamp, optimistically read data, and then check whether the stamp has changed. If not, we’re done, and if it has, we need to retry. ([View Highlight](https://instapaper.com/read/1156103794/10168137))