# progschj/ThreadPool

A simple C++11 Thread Pool implementation

Repository: https://github.com/progschj/ThreadPool
Canonical: https://ross.abutalabs.com/products/threadpool
Language: C++
License: Zlib
License Family: permissive
Last push: 2024-07-20T12:33:59+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": 5081, "days_push": 774, "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 8797, forks 2331 (observed 2026-08-28T04:10:25.787451+00:00)

## What it is
A minimal, header-only C++11 thread pool library that manages a fixed set of worker threads executing queued tasks. Tasks return std::future objects, allowing callers to retrieve results asynchronously.

## Use cases
- run tasks in parallel with a fixed worker pool in C++
- enqueue functions and get results via futures
- avoid manually managing std::thread instances
- parallelize CPU-bound workloads
- implement background task execution in a C++ application

## When to choose
- you need a tiny, dependency-free thread pool in modern C++
- you want std::future-based task results with minimal boilerplate
- you prefer a single-header library that is easy to drop into any project

## When to avoid
- you need advanced features like work stealing, priorities, or dynamic resizing
- your project targets C++ standards older than C++11
- you need a full async runtime or coroutine integration

## Facets
- artifact type: library
- maturity: stable
- function: concurrency
- domain: developer-tools, performance
- platform: cpp, cross-platform
- tags: thread-pool, cpp11, header-only, futures, task-scheduling, algorithms

## Member repositories
- progschj/ThreadPool (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:25.787451+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-29T17:25:11.815877+00:00, confidence not recorded.
  - readme: https://github.com/progschj/ThreadPool (fetched 2026-08-28T04:10:25.787451+00:00, sha cf37cab50970)
- Data as of 2026-08-30T08:39:29.467469+00:00.
