在linux上创建一个线程池,用来管理多线程,主要包括ThreadPool、 WorkerThread和Task三个模块, ThreadPool是一个框架不涉及具体业务; 如果你要把此框架添加到你的项目中,只需要继承Task即可;
Creating a thread pool on Linux to manage multithreading, including ThreadPool, WorkerThread, and Task, ThreadPool is a framework that does not involve specific business; If you want to add this framework to your project, just inherit Task;