# Pithikos/C-Thread-Pool

A minimal but powerful thread pool in ANSI C

Repository: https://github.com/Pithikos/C-Thread-Pool
Canonical: https://ross.abutalabs.com/products/c-thread-pool
Language: C
License: MIT
License Family: permissive
Last push: 2025-05-18T12:24:52+00:00

## Health v2 (maintenance only)
Score: 42/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 22, release rhythm 35, longevity 100
- inputs: {"age_days": 5415, "days_push": 472, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2362, forks 652 (observed 2026-08-28T04:06:40.996064+00:00)

## What it is
A minimal but powerful thread pool implementation in ANSI C built on POSIX threads. It provides a simple API for initializing pools, dispatching work, waiting, pausing/resuming, and destroying pools.

## Use cases
- run tasks concurrently in a C program
- parallelize work across worker threads
- process a job queue with a fixed number of threads
- pause and resume background workers
- wait for all submitted jobs to finish before continuing

## When to choose
- you need a small, dependency-free thread pool in C
- you want POSIX-compliant code that compiles anywhere with pthreads
- you need fine control like pausing/resuming workers

## When to avoid
- you need a C++ thread pool with std::async or futures
- you need work stealing or priority scheduling
- your project targets platforms without POSIX threads

## Facets
- artifact type: library
- maturity: stable
- function: concurrency
- domain: developer-tools
- platform: cpp, c
- tags: thread-pool, posix-threads, ansi-c, parallelism, algorithms, linux, macos

## Member repositories
- Pithikos/C-Thread-Pool (main) score 42

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:40.996064+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-30T02:36:02.992912+00:00, confidence not recorded.
  - readme: https://github.com/Pithikos/C-Thread-Pool (fetched 2026-08-28T04:06:40.996064+00:00, sha 73b986557597)
- Data as of 2026-08-30T08:39:29.467469+00:00.
