摘要
在软件系统的开发中,系统的响应时间、资源消耗以及并发度越来越受到重视。同时,开发人员越来越多地使用中间件来提高开发效率和系统性能。池机制就是一种通过复用而不是每次都重新创建对象来解决系统性能的方式。为不同的资源对象开发不同的池将导致许多的重复工作和代码冗余。分析了当前许多池的特征,从中提取出四种共性:资源的借入借出、资源有效性检查、池的监测机制和池的可定制机制;扩展了Mark Grand的对象池模式,提出了一个通用池框架。在这个扩展池的基础上,通过研究资源的状态转换,首次提出一种细粒度的状态转换——对象的多状态转换机制。实验和分析结果证明了方法的有效性。
Nowadays, many software systems pay great attention to their response time, resource consumption and concurrency. Correspondingly, more and more middleware is used by these systems to improve developing efficiency and system performance. Pool mechanism has helped many systems to solve the performance problems by reusing big objects already created not creating them from beginning again. But at the same time, developers have to develop different kinds of pools for different resource objects, which lead to a lot of repeated work and code redundancies. After analyzing the features of current pools, this paper extracts four commonalities which are called kernel tasks, ensurance servi is an extension ees, and organization work and customization providing, and proposes a generic pool framework, which enhancement of Mark Grand's object pool pattern. Based on this enhanced pool, it brings out multi-state transferring mechanism from the viewpoint of state transferring. No other pools support this kind of finegranularity state-transferring. Experiments and analysis show the validity of this method.
出处
《计算机科学与探索》
CSCD
2010年第3期214-221,共8页
Journal of Frontiers of Computer Science and Technology
基金
自然科学基金创新研究群体科学基金No.60821003
自然科学基金青年基金No.60603038
国家重点基础研究发展规划(973)No.2009CB32070
国家高技术研究发展计划(863)No.2009AA01Z139~~
关键词
通用池
多状态转换
池模式
generic pool
multi-state transferring
pool pattern