使用POSIX线程实现C++线程池
So a thread pool basically consists of the three primary actors:
1. A number of threads either waiting for or executing tasks.
2. A number of service requests to the server from clients. Each request is considered a task to the threads.
3. A queue holding the incoming service requests.