Abstract:
An object pool model for multi-thread is proposed.Aimed to solve the problem that it costs too much to apply object during the multi-thread environment,on the basis of object pool design pattern,an object pool model for multi-thread is designed and implemented.According to the test result,the performance of server program can be highly increased by using the model.
摘要: 提出了一种“多线程并发环境下的对象缓存模型”,针对多线程并发环境下,大量请求对象造成的开销过大的问题,在对象池设计模式的基础上,设计实现了多线程并发环境下的对象缓存模型。实验测试表明,该模型能极大地提高服务器程序的性能。
关键词:
对象池,
设计模式,
复用,
多线程
CLC Number:
GAO Zhengguang,LI Qiyan. An Object Pool Model in Multi-thread Concurrency Environment[J]. , 2005, 31(22): 114-116.
高正光,李启炎. 一种多线程并发环境下的对象缓存模型[J]. , 2005, 31(22): 114-116.