# threadpool **Repository Path**: wuchengwen/threadpool ## Basic Information - **Project Name**: threadpool - **Description**: 自己动手写一个c++版本的线程池 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-10 - **Last Updated**: 2022-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # threadpool #### 介绍 自己动手写一个c++版本的线程池 #### 思路 1、工作线程:启动后等待,直到有任务时,就去工作队列取任务,并执行。如果通知线程池退出了,或者需要有线程退出时,如果任务队列中没有任务,则直接返回退出。 2、管理者线程:监控工作线程的繁忙程度,如果达到设定的条件,则通知一定数量的工作线程退出或者创建更多线程。 #### 参考资料 1.[手写线程池 - C语言版](https://subingwen.cn/linux/threadpool) 2.[手写线程池 - C改C++版](xvhttps://subingwen.cn/linux/threadpool-cpp/) 3.[A simple C++11 Thread Pool implementation](https://github.com/progschj/ThreadPool) #### 参与贡献 1. 有兴趣的朋友可以参与贡献