Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cpplawyer/threadpool-for-multithreading
One thread will be used to launch other threads very cheaply, and if there is no task, the one thread will yield and execute another task. With this threadpool, it is possible to stop at any moment and restart at any moment It is also possible to let the system decide when to deallocate the threadpool object.
https://github.com/cpplawyer/threadpool-for-multithreading
cplusplus cplusplus-11 cplusplus-17 low-latency low-level multithreading mutex optimization performance thread-pool thread-safe threadpool
Last synced: about 11 hours ago
JSON representation
One thread will be used to launch other threads very cheaply, and if there is no task, the one thread will yield and execute another task. With this threadpool, it is possible to stop at any moment and restart at any moment It is also possible to let the system decide when to deallocate the threadpool object.
- Host: GitHub
- URL: https://github.com/cpplawyer/threadpool-for-multithreading
- Owner: cppLawyer
- License: gpl-3.0
- Created: 2022-02-13T20:44:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-14T18:48:40.000Z (about 1 month ago)
- Last Synced: 2024-09-24T21:04:40.148Z (about 16 hours ago)
- Topics: cplusplus, cplusplus-11, cplusplus-17, low-latency, low-level, multithreading, mutex, optimization, performance, thread-pool, thread-safe, threadpool
- Language: C++
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Threadpool-for-Multithreading
One thread will be used to launch other threads very cheaply, and if there is no task,
the one thread will yield and execute another task. With this threadpool,
it is possible to stop at any moment and restart at any moment It is also
possible to let the system decide when to deallocate the threadpool object.- The threadpool uses an inbuild queue.
- Easy to Use.
- Low level optimized.
- Thread limit checker, so there are no performance penalties.
- Only for basic functions with no return type and no parameters,
Please let me know if those features are required.