Skip to content

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

C++ Thread Pool Implementation

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.


πŸš€ Features

  • Fixed-size thread pool
  • Task submission using execute_task with perfect forwarding
  • Futures to get task results
  • Graceful shutdown of worker threads
  • Thread-safe task queue using mutex and condition variable

🧠 Concepts Used

  • std::thread for worker threads
  • std::mutex and std::condition_variable for synchronization
  • std::queue for task storage
  • std::function, std::bind, and std::packaged_task for generic task handling
  • std::future to return results from asynchronous tasks

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages