摘要
在服务器应用开发中线程池技术被广泛地用于处理大量的并发任务请求,线程池设计的好坏决定服务器的并发处理性能和效率。本文介绍用于复杂并行系统设计的半同步半异步设计模式,根据该模式设计并实现一个线程池,该线程池具有效率高、稳定性好的特点。
The thread pool technology is widely used in server application developing to process a large number of concurrent task request and the quality of thread pool design determines the performance and efficiency of the sever.This article introduces the half sync/half async design pattern which is used to design complex concurrent system and by which design and implement a thread pool which is characterized with high efficiency and good stability.
出处
《计算机与现代化》
2010年第7期38-40,共3页
Computer and Modernization
关键词
线程池
半同步半异步
多线程
设计模式
thread pool
half sync/half async
multi thread
design pattern