thread-pool

BS::thread_pool: a fast, lightweight, and easy-to-use C++17 thread pool library (by bshoshany)

Thread-pool Alternatives

Similar projects and alternatives to thread-pool

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better thread-pool alternative or higher similarity.

thread-pool reviews and mentions

Posts with mentions or reviews of thread-pool. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-04.
  • How do i make the main thread sleep while worker threads work and worker threads sleep when waiting for main thread to execute them
    2 projects | /r/cpp_questions | 4 Mar 2023
    Nope, it's definitely a problem with your code, not an external problem. This is an inevitable result when your threading scheme is not watertight. I don't have any code snippets since I'm just remembering what I've done in the past on projects, but if you can't design it to work yourself I suggest using a library. You said you've been "dealing with [multithreading] for some time now and think I have a decent understanding" but that doesn't sound like you really have a solid theoretical understanding of the subject, especially considering that it's a notoriously difficult subject. My recommendation is either to go back and plan out a watertight synchronization scheme on paper (may require finding some lecture series on multithreading theory), or to use an off-the-shelf thread pool library like this one I just found by googling thread pool library. I suggest the former if this is a hobby project, but if this code has a possibility of ever being used by other people I suggest doing the latter.
  • Header-only C++14 quality thread pool
    2 projects | /r/cpp_questions | 3 Jan 2023
    Hi, I am looking for a header-only C++14 (or lower) quality thread pool. Ideally, it would be similar to BS::thread_pool but in C++14. Most of them I find on GitHub are bloated (e.g. concurrencpp) or have many open Issues. Ideal usage would be similar to:
  • A C++17 thread pool for high-performance scientific computing
    5 projects | news.ycombinator.com | 14 Jun 2022
    There are lots of them and many are built into the OS(e.g. GCD on mac's, Windows has a thread pool api, TBB on all of them...)

    It would be neat if the github site https://github.com/bshoshany/thread-pool or the paper did some comparisons to the existing body out there.

    5 projects | news.ycombinator.com | 14 Jun 2022
  • A note from our sponsor - SaaSHub
    www.saashub.com | 15 Apr 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic thread-pool repo stats
6
1,895
4.2
24 days ago
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com