# mtrebi/thread-pool

Thread pool implementation using c++11 threads

Repository: https://github.com/mtrebi/thread-pool
Canonical: https://ross.abutalabs.com/products/mtrebi-thread-pool
Language: C++
License: MIT
License Family: permissive
Topics: threads, thread-pool, futures, multi-threading, concurrency
Last push: 2024-03-01T03:35:48+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3438, "days_push": 915, "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 1235, forks 239 (observed 2026-08-28T04:04:04.967830+00:00)

## What it is
A C++11 thread pool implementation that reuses a fixed set of worker threads to execute submitted tasks without blocking the main thread. It is written as an educational project with a straightforward, easy-to-read codebase rather than a production-grade library.

## Use cases
- run tasks concurrently without blocking the main thread
- learn how C++11 threads and futures work
- avoid thread creation overhead by reusing worker threads
- submit work to a queue processed by background threads
- study a simple thread pool implementation in C++

## When to choose
- you want readable, educational source code to understand thread pools
- you need a minimal C++11 thread pool for a hobby or learning project

## When to avoid
- you need a battle-tested pool for production software (the author explicitly warns against professional use)
- you need advanced features like dynamic sizing, work stealing, or cancellation

## Facets
- artifact type: library
- maturity: experimental
- function: concurrency
- domain: developer-tools
- platform: cpp, cross-platform, windows
- tags: thread-pool, cpp11, futures, multithreading, educational, algorithms, linux, macos

## Member repositories
- mtrebi/thread-pool (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:04.967830+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-30T08:22:07.472884+00:00, confidence not recorded.
  - readme: https://github.com/mtrebi/thread-pool (fetched 2026-08-28T04:04:04.967830+00:00, sha f14641efda12)
- Data as of 2026-08-30T08:39:29.467469+00:00.
