摘要
线程池被广泛地应用在中间件如Web应用服务器、事务监控器等的实现中。实现线程池的方法主要有半同步/半异步(Half-Sync/Half-Asyn)模式和领导者/跟随者(Leader/Follower)模式。实现了这两种线程池,从理论上分析了它们的性能,并进行了性能实验。实验数据表明Leader/Follower模式具有较高的性能优势。
Thread pool is widely used in the implementation ofmiddleware such as web application server and transaction monitor. HalfSync/Half-Asyn pattern and leader/follower pattern are mostly used in the implementation of a thread pool. These two patterns is implemented, then their performance is analyzed from the view of theory and experiments. The experimental results show that leader/follower has better performance.
出处
《计算机工程与设计》
CSCD
北大核心
2007年第7期1489-1492,1531,共5页
Computer Engineering and Design
基金
国家863高技术研究发展计划基金项目(2003AA115440)
国家973重点基础研究发展计划基金项目(2002CB312005)。