然而,有关如何使用COM+服务的文章很少,比如分布式处理和对象池(object pooling)(和.NET中的消息队列),所以我将展示在你的网络服务中如何用这些技术。
基于170个网页-相关网页
Purpose of Object Pooling 对象池的目的
Let's consider a scenario in which object pooling would be useful.
让我们考虑一个可以有效使用对象池的方案。
The basic pattern for object pooling looks something like this.
对象池的基本模式如下所示。
If your objects are not used with high frequency or do not have a high creation or destruction cost, then object pooling might not be the right strategy.
如果对象的使用频率不高,或者对象的创建或销毁成本不高,则对象池可能不是正确的策略。
应用推荐