# bshoshany/thread-pool

BS::thread_pool: a fast, lightweight, modern, and easy-to-use C++17 / C++20 / C++23 thread pool library

Repository: https://github.com/bshoshany/thread-pool
Canonical: https://ross.abutalabs.com/products/thread-pool
Language: C++
License: MIT
License Family: permissive
Topics: thread-pool, threadpool, multithreading, cpp, cpp17, cplusplus, cplusplus-17, easy-to-use, scientific-computing, parallel, concurrency, threading, cplusplus-20, cplusplus-23, cpp20, cpp20-modules, cpp23, high-performance, high-performance-computing
Last push: 2026-01-04T01:05:55+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 60, release rhythm 32, longevity 100
- inputs: {"age_days": 2056, "days_push": 242, "days_rel": 242, "gap_med": 379, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3040, forks 331 (observed 2026-08-28T04:07:39.312507+00:00)

## What it is
BS::thread_pool is a fast, lightweight, header-only C++17/C++20/C++23 thread pool library for submitting tasks to a pool of worker threads and receiving futures. It is designed to be easy to use while supporting high-performance parallel and scientific computing workloads.

## Use cases
- run tasks in parallel with a thread pool in C++
- submit tasks and get futures back in C++
- parallelize loops for scientific computing
- manage a pool of worker threads easily
- speed up CPU-bound C++ workloads with multithreading
- wait for a batch of tasks to finish

## When to choose
- you need a simple, modern C++ thread pool without heavy dependencies
- you want header-only integration via vcpkg, Conan, or Meson
- you need futures, task detaching, and wait-for-all semantics
- you are doing high-performance or scientific computing in C++

## When to avoid
- you need distributed or multi-node parallelism rather than shared-memory threading
- you need GPU or heterogeneous parallelism
- your project targets a standard older than C++17

## Facets
- artifact type: library
- maturity: stable
- function: concurrency
- domain: developer-tools, performance, cross-platform
- platform: cpp, cross-platform
- tags: thread-pool, multithreading, parallelism, cpp17, cpp20, cpp23, header-only, scientific-computing, high-performance-computing

## Member repositories
- bshoshany/thread-pool (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:39.312507+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:29:15.231443+00:00, confidence not recorded.
  - readme: https://github.com/bshoshany/thread-pool (fetched 2026-08-28T04:07:39.312507+00:00, sha 553f55aa8c87)
- Data as of 2026-08-30T08:39:29.467469+00:00.
