作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2004, Vol. 30 ›› Issue (09): 30-.

• 论文 • 上一篇    下一篇

对象池模式的扩展与设计

水超,李慧   

  1. 国防科学技术大学计算机学院,国防科学技术大学计算机学院 长沙 410073
  • 发布日期:2004-05-15

Extension and Implementation of Object pool pattern

SHUI Chao, LIH Ui   

  1. (School of Computer Science,National University of Defense Technology,Changsha 410073)
  • Published:2004-05-15

摘要: 在object pool设计模式的基础上,研究了实际应用中对象池模型的共性接口和策略,设计了对象池的管理接口、对象建立与消亡接口、对象回收接口等,并根据这些接口提出了新的抽象扩展模型,为thread pool、connect pool等应用提供了基础模式。

关键词: 设计模式, 对象池, 对象管理, 线程池, 连接池

Abstract: Object pool design pattern is very import pattern for manages scarce or expensive resource by requiring the objects to be checked in and out of a finite pool. This paper studies the pattern based on the Mark Grands research, and designs some new interfaces for object management, and extends the old pattern for designing new program quickly and implicitly.

中图分类号: