文件名称:osThreadpool
介绍说明--下载内容均来自于网络,请自行研究使用
在项目里经常用到多线程,大量的客户向服务器提出请求,这时需要开辟线程来响应客户请求,由于客户量是不可预知的,难道来一个客户请求就新开个线程来响应吗?答案是否定的,要知道开辟和撤消线程是需要耗费相当多时间和资源的,于是前辈们弄出了很多模型出来解决这种问题,其中使用线程池(Thread Pooling)是个很好的主意。线程池在Windows2000及其以后版本得到了很好的支持。使用系统提供的线程池机制相当方便而-Frequently used in the project in multi-threaded, a large number of clients to the server request, when the need to open up the thread to respond to customer requests, as a result of customer traffic is unpredictable, can come to a client request to open a new thread to respond to it? The answer is no, need to know to open up and withdrawal of the thread is the need to spend considerable time and resources, they make a lot of predecessors, the model out to solve this problem, including the use of thread pool (Thread Pooling) is a good idea . Thread pool in Windows2000 and its subsequent versions have had good support. Using the system thread pool mechanism provides considerable convenience
(系统自动生成,下载前可以参看下载内容)
下载文件列表
VC中使用系统提供的线程池.txt