# tinycthread/tinycthread

Small, portable implementation of the C11 threads API

Repository: https://github.com/tinycthread/tinycthread
Canonical: https://ross.abutalabs.com/products/tinycthread
Homepage: https://tinycthread.github.io/
Language: C
License Family: other
Last push: 2023-12-30T20:21:41+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4692, "days_push": 977, "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 1043, forks 129 (observed 2026-08-28T04:03:20.916678+00:00)

## What it is
TinyCThread is a minimalist, portable C library implementing a subset of the C11 threads API (threads, mutexes, condition variables, once semantics). It has no external dependencies and can be dropped into a project as two files or used via CMake.

## Use cases
- add multithreading to a C program portably
- use C11 threads API on compilers without C11 thread support
- write cross-platform threaded code for Windows, macOS, and Linux
- drop a small threading library into a project without dependencies
- port POSIX threads code to Windows

## When to choose
- you need C11-style threading on platforms or compilers lacking native support
- you want a tiny, dependency-free library you can vendor into your build
- you target Windows, macOS, and Linux with one codebase

## When to avoid
- your compiler already supports C11 <threads.h> natively
- you need advanced features like thread pools, priorities, or the full C11 threads API
- you need a library with active development and a formal license file

## Facets
- artifact type: library
- maturity: maintenance
- function: concurrency, developer-tools
- domain: developer-tools, cross-platform, programming-languages
- platform: windows, cpp, c
- tags: c11-threads, threading, portable, minimalist, single-file-library, mutex, condition-variables, linux, macos

## Member repositories
- tinycthread/tinycthread (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:20.916678+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-30T07:02:32.448242+00:00, confidence not recorded.
  - readme: https://github.com/tinycthread/tinycthread (fetched 2026-08-28T04:03:20.916678+00:00, sha 987a830d3f7b)
  - homepage: https://tinycthread.github.io/ (fetched 2026-08-29T13:03:28.248146+00:00, sha 7f1d48adc702)
- Data as of 2026-08-30T08:39:29.467469+00:00.
