Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.46 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.46 KB

Thread Pool Concurrency Pattern in C++

A C++ project demonstrating the Thread Pool pattern for concurrency.

Introduction

This project showcases a C++ implementation of the Thread Pool pattern, a concurrency design pattern used for managing and executing multiple tasks concurrently by efficiently distributing them among a fixed number of threads. The program smartly distributes threads equally among the heavy tasks to implement them concurrently, thus optimizing resource utilization and enhancing overall performance.

Features

  • Thread Pool Pattern: Efficiently manages multiple heavy tasks by distributing them among a fixed number of threads.
  • Concurrency: Implements heavy tasks concurrently, optimizing resource utilization.
  • Smart Thread Distribution: Equally distributes threads among the heavy tasks, ensuring efficient task execution.

Requirements

  • C++20 or above
  • This project is tested and compatible with the following compilers:
    • Mingw g++
    • Microsoft Visual C++ (MSVC)

Usage

  1. Clone the repository:
    git clone https://github.com/BardiParsi/ThreadPool.git
  2. Build the project using a C++20 compiler.
  3. Run the executable.

Contributing

Contributions are welcome! Fork the repository, make your changes, and submit a pull request.

License

This project is licensed under the General License - see the LICENSE file for details.

Contact

Let me know if you need further assistance! email: farsi.masoud@gmail.com