google/nsync
nsync is a C library that exports various synchronization primitives, such as mutexes observed · 2026-08-28
Health v2 · maintenance only
54/100
- Activity 49
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3462
- days_rel: n/a
- days_push: 308
- n_releases_24m: 0
Adoption not part of the score
1280 stars · 90 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
nsync is a portable C library exporting synchronization primitives such as mutexes, reader-writer locks, condition variables, run-once initialization, waitable counters, and waitable bits. It offers conditional critical sections and cancellable waits as alternatives to pthread primitives, with small memory footprints and broad platform support.
Use cases
- replace pthread mutexes with more efficient reader-writer locks
- implement cancellable waits in multithreaded C code
- use conditional critical sections instead of condition variable while-loops
- synchronize threads in a portable C library across Unix and Windows
- implement barriers with waitable counters
- run-once lazy initialization in C
When to choose
- you need lightweight, portable synchronization primitives in C or C++
- you want cancellable waits without cancelling whole threads
- you need reader-writer locks as fast as mutexes
- you must compile with only a C90 compiler
When to avoid
- your project already works fine with pthreads or C++ standard library primitives
- you need a class-based C++ synchronization API
- you want a widely familiar API for team onboarding
Facets
library · maturity active
concurrency developer-tools performance windows cpp c cross-platform synchronization-primitives mutexes condition-variables reader-writer-locks c90-portable cancellation algorithms linux macos
1 source
- readme: https://github.com/google/nsync · fetched 2026-08-28 · 7fa00bbe97b8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/nsync | main | 54 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem