Why Object Pool is required?

 Posted by Tripati_tutu on 3/12/2011 | Category: C# Interview questions | Views: 3749 | Points: 40

Basically this is a container of objects which reduces the overhead of creating objects each time. This can perform a certain task by allocating an object in the memory pool and can re-use it from memory pool according to the requirement.

Whenever the user will request to create an object, the pool manager will perform task for allocating an object from the pool which helps to minimize the memory consumption. This is used to enhance the performance and reduce the load of creation of new objects.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Akiii on: 3/16/2011 | Points: 10
Suppose we are not creating the objects and want to have objects from pool, then how can we do that ?
what are the procedures !

Thanks and Regards
Posted by: Tripati_tutu on: 3/17/2011 | Points: 10
Hi Akiii,

Nice question. But I want to say you is, in DotNetFunda website there is an facility to ask the questions in forum section.
Hope if you will post this question on forum section, you will get answer.


Login to post response