How do Object Pooling and Connection Pooling differ?

          

Interview questions

C#.NET - How does object pooling and connection pooling differ?


Next>>  Learn C#.NET
C#.Net - How does object pooling and connection pooling differ? - May 13, 2009 at 18:40 PM by Amit Satpute

How does object pooling and connection pooling differ?

In Object pooling, you can control the number of connections.

In connection pooling, you can control the maximum number reached.

When using connection pooling, if there is nothing in the pool, a connection is created since the creation is on the same thread.

In object pooling, the pool decides the creation of an object depending on whether the maximum is reached which in case if it is, the next available object is returned. However, this could increase the time complexity if the object is heavy.

C#.Net - How does object pooling and connection pooling differ? - June 04, 2009 at 15:00 PM by Shuchi Gauri

Object pooling allows you to control the number of connections being used, whereas connection pooling allows the control of maximum number reached.


Next>>

Also read

What is an object pool in .NET?

An object pool is a container of objects that holds a list of other objects that are ready to be used.......

Explain how to Implement an Object Pool in C#.NET.

using System;
using System.Collections;.......

Why is an object pool required?

The request for the creation of an object is served by allocating an object from the pool.......



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring