An Enhanced Generic Pool Framework Supporting Multi-State Transferring

MA Xiujuan,ZHOU Minghui,MEI Hong
DOI: https://doi.org/10.3778/j.issn.1673-9418.2010.03.003
2010-01-01
Abstract: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 services,organization work and customization providing,and proposes a generic pool framework,which is an extension and 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.
What problem does this paper attempt to address?