# m-ou-se/rust-atomics-and-locks

Code examples, data structures, and links from my book, Rust Atomics and Locks.

Repository: https://github.com/m-ou-se/rust-atomics-and-locks
Canonical: https://ross.abutalabs.com/products/rust-atomics-and-locks
Language: Rust
License: NOASSERTION
License Family: other
Last push: 2024-08-06T02:28:39+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 35, longevity 97
- inputs: {"age_days": 1358, "days_push": 758, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1618, forks 152 (observed 2026-08-28T04:05:12.134181+00:00)

## What it is
Companion repository for the book 'Rust Atomics and Locks' by Mara Bos, containing code examples, data structures, and links from each chapter. It covers Rust concurrency topics such as threads, atomics, memory ordering, mutexes, and lock-free data structures.

## Use cases
- learn rust concurrency from a book with runnable examples
- understand memory ordering in rust atomics
- study lock-free data structure implementations in rust
- find example code for mutexes and condition variables
- reference material for writing thread-safe rust code
- learn how compare-and-exchange and fetch-add work

## When to choose
- you are reading or have read Rust Atomics and Locks and want the accompanying code
- you want well-organized, chapter-by-chapter examples of rust concurrency primitives
- you want to study implementations of locks and atomic data structures in rust

## When to avoid
- you need a production-ready concurrency library rather than educational examples
- you are looking for concurrency tutorials in languages other than rust
- you want a maintained crate with an API to depend on

## Facets
- artifact type: learning-resource
- maturity: stable
- function: concurrency, developer-tools
- domain: developer-tools, programming-languages, tutorials
- platform: rust, cross-platform
- tags: rust, atomics, locks, concurrency, book, code-examples, memory-ordering, threads

## Member repositories
- m-ou-se/rust-atomics-and-locks (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:12.134181+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:49:38.991162+00:00, confidence not recorded.
  - readme: https://github.com/m-ou-se/rust-atomics-and-locks (fetched 2026-08-28T04:05:12.134181+00:00, sha 4ec3e70b36fe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
