摘要
在多线程侦听I/O事件时,我们必须处理好多线程和多I/O句柄之间的关系,既要尽量减少线程同步的开销,有要保证I/O的安全性,传统技术在这里遇到巨大的困难。为了解决这个问题,设计了一种服务器软件里的Leader/Follower线程池,这种线程池能够共享一组I/O端口,实现高效侦听,分发和处理I/O事件。实践表明这种方案能够大幅提高系统的I/O性能。
In the situation of multi-thread I/O, the relationship of threads and I/O handles must be well handled, as reduce the overhead of Thread synchronization and ensure I / O security.To do so, the tradition technology dose not work well. But fortunately, a perfect solution named Leader/follower thread pool is found, it can deal with sharing a set of I/O event sources well and detect, de-multiplex,dispatch,and process service requests that occur on these I/O event sources.
出处
《微计算机信息》
2009年第18期188-189,179,共3页
Control & Automation
基金
国家863重点项目(涉密)
基金申请人:刘正熙等
基金颁发部门:国家科技部
关键词
事务
线程池
多线程
Transaction
Thread pool
multiple thread