Menu

Tree [ddd483] main /
 History

HTTPS access


File Date Author Commit
 LICENSE 2025-01-12 vu.nguyenchiemminh vu.nguyenchiemminh [ddd483] MIT license
 Makefile 2025-01-10 vu3.nguyen vu3.nguyen [3a5070] update
 README.md 2025-01-12 vu.nguyenchiemminh vu.nguyenchiemminh [ddd483] MIT license
 pthreadpool.h 2025-01-10 vu3.nguyen vu3.nguyen [72ebd6] update
 test_pthreadpool.c 2025-01-10 vu3.nguyen vu3.nguyen [3a5070] update
 test_threadpool.cpp 2025-01-07 vu3.nguyen vu3.nguyen [60d82e] update
 threadpool.h 2025-01-12 vu.nguyenchiemminh vu.nguyenchiemminh [ddd483] MIT license

Read Me

LibThreadPool - Lightweight and Single-Header C++ Thread Pool Library

The ThreadPool library is a simple and efficient way to manage multiple tasks in a program. It allows you to run several tasks at the same time using a pool of worker threads.

The entire implementation is provided in one single header file, making it extremely portable and hassle-free to integrate into your project. Whether you are building a small project or a larger application, this library offers the necessary tools to efficiently handle multi-threading with minimal setup.

Features

  • Lightweight: Just include and use—no builds or installations needed.
  • Portable: Built with C++11, adapted with Linux and other platforms.
  • Easy to Use: Intuitive API for seamless integration.

References

https://www.geeksforgeeks.org/thread-pool-in-cpp/

https://araujo88.medium.com/a-quick-guide-to-concurrency-in-c-5699a21f3c05

https://nixiz.github.io/yazilim-notlari/2023/10/07/thread_pool-en

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.