This project is a lightweight C++ thread pool implementation using standard C++11 libraries. It demonstrates how to manage a pool of worker threads that execute user-submitted tasks concurrently, with proper synchronization and future-based result retrieval.
- Fixed-size thread pool
- Task submission using
execute_taskwith perfect forwarding - Futures to get task results
- Graceful shutdown of worker threads
- Thread-safe task queue using mutex and condition variable
std::threadfor worker threadsstd::mutexandstd::condition_variablefor synchronizationstd::queuefor task storagestd::function,std::bind, andstd::packaged_taskfor generic task handlingstd::futureto return results from asynchronous tasks