C#中的对象池 [英] object pooling in c#
本文介绍了C#中的对象池的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通过对象池,我认为可以控制以下内容:
数据库连接,
线程数
使用的内存
池中对象的数量
1-我对上述说法正确吗?
2-应用程序域的数量也可以由池控制吗?
谢谢
With object pooling, I think the following can be controlled:
database connection,
number of threads
memory used
number of objects in the pool
1- Am I right with the above?
2- Can the number of application domains also be controlled by the pool?
Thanks
推荐答案
我认为您正在谈论数据库连接池.
阅读
http://msdn.microsoft.com/en-us/library/8xx3tyca.aspx [ ^ ]
ADO.NET连接池一览 [I think you are talking about Database connection pooling.
Read
http://msdn.microsoft.com/en-us/library/8xx3tyca.aspx[^]
ADO.NET Connection Pooling at a Glance[^] to get more details about it.
这篇关于C#中的对象池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文