thread-pool VS sobjectizer

Compare thread-pool vs sobjectizer and see what are their differences.

sobjectizer

An implementation of Actor, Publish-Subscribe, and CSP models in one rather small C++ framework. With performance, quality, and stability proved by years in the production. (by Stiffstream)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
thread-pool sobjectizer
6 15
1,924 456
- 3.9%
4.2 9.1
about 1 month ago about 1 month ago
C++ C++
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

thread-pool

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.
  • Learn performance improvement
    1 project | /r/cpp_questions | 22 Mar 2023
  • 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.

sobjectizer

Posts with mentions or reviews of sobjectizer. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-25.
  • SObjectizer Tales - Epilogue
    7 projects | dev.to | 25 Apr 2024
    Message Delivery Tracing aims to debug an application built on top of SObjectizer. In essence, it logs the primary stages of the message delivery process, allowing visibility into whether there is a suitable subscriber with the corresponding event handler.
  • SObjectizer Tales - 27. Design ideas
    1 project | dev.to | 11 Apr 2024
    An additional rationale for structuring cooperations in hierarchies is to facilitate the sharing and propagation of dispatchers. A recent update of SObjectizer includes new functionalities that allow access to both agent and cooperation dispatchers. This enhancement was prompted by feedback provided by a user and myself.
  • SObjectizer Tales - 26. Dispatcher selection
    2 projects | dev.to | 4 Apr 2024
    If a stop signal arrives, it will be enqueued at the end as a demand for image_producer_callback. This means, it will be processed after the other 6 demands currently in the queue. Maybe this is not an issue but in some cases it might be. At this point, another feature of SObjectizer is to consider: agent priorities. Essentially, this feature allows for the demands to be handled in different orders based on the priorities of agents. In this context, if we assign image_producer_callback a higher priority than others, the “stop signal” would be processed before the rest of the requests.
  • SObjectizer Tales - 23. Mutable messages
    1 project | dev.to | 14 Mar 2024
    The real solution consists in using another slick feature of SObjectizer: mutable messages.
  • SObjectizer Tales - 8. Representing errors
    1 project | dev.to | 29 Nov 2023
    However, this kind of filtering is inefficient and might result in a significant run-time cost. Indeed, every empty cv::Mat follows all the message handling workflow, only to be thrown out. Although we expect that empty images will be sporadic, a more idiomatic approach exists: delivery filters.
  • SObjectizer Tales – 6. Is the stream still in progress?
    1 project | dev.to | 16 Nov 2023
    SObjectizer’s agent states are quite sophisticated and provide some utilities that might be useful for developing a working solution. First of all, image_viewer can be modeled as a two-state agent:
  • SObjectizer Tales - 5. Sending commands
    2 projects | dev.to | 9 Nov 2023
    An alternative way is using SObjectizer’s timers.
  • Multiplayer, multithreading, and an actor model in C++
    3 projects | /r/cpp | 2 Jan 2023
    Those who came looking for actor model examples should check out sobjectizer
  • What are some candidate libraries for inter-thread communication like message boxes or event systems?
    15 projects | /r/cpp | 11 Jan 2022
    In sobjectizer the ownership is held by "environment" , while in rotor each thread must held appropriate context, when actor environment is running.
  • Sender and Receiver implementations
    4 projects | /r/cpp | 25 Jul 2021
    May be actor frameworks like caf, sobjectizer or rotor is something, that you are looking for.

What are some alternatives?

When comparing thread-pool and sobjectizer you can also consider the following projects:

thread-pool - A modern, fast, lightweight thread pool library based on C++20

concurrencpp - Modern concurrency for C++. Tasks, executors, timers and C++20 coroutines to rule them all

Lazy - Light-weight header-only library for parallel function calls and continuations in C++ based on Eric Niebler's talk at CppCon 2019.

eCAL - Please visit the new repository: https://github.com/eclipse-ecal/ecal

ZIO - ZIO — A type-safe, composable library for async and concurrent programming in Scala

rotor - Event loop friendly C++ actor micro-framework, supervisable

TDP - The Darkest Pipeline - Multithreaded pipelines for modern C++

iceoryx - Eclipse iceoryx™ - true zero-copy inter-process-communication

envpool - C++-based high-performance parallel environment execution engine (vectorized env) for general RL environments.

RxCpp - Reactive Extensions for C++

Aeron - Efficient reliable UDP unicast, UDP multicast, and IPC message transport