Explain object pooling?

Answer Posted / vadivel

In computer programming, a Object pool is a software design
pattern. An object pool is a set of initialised objects
that are kept ready to use, rather than allocated and
destroyed on demand. A client of the pool will request an
object from the pool and perform operations on the returned
object. When the client has finished with an object, it
returns it to the pool, rather than destroying it. It is a
specific type of factory object.

Object pooling can offer a significant performance boost;
it is most effective in situations where the cost of
initializing a class instance is high, the rate of
instantiation of a class is high, and the number of
instantiations in use at any one time is low.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define and explain about COM?

617


How to create an instance of the object in COM?

581


What is the difference between aggregated and contained objects?

576


Can I use com components from .net programs?

613


What is dcom?

546






What is reference counting in com?

560


Can I use .net components from com programs?

613


Can you explain what is dcom?

549


What are queued components?

591


What is the use of com component in .net?

599


How do we create dcom object in vb6?

702


how to call a dll as a COM dll?

726


Does .net replace com?

561


Suppose we have object b and aggregated object c (in- proc server), created by b. Can you access any interface of b from c? What?s the difference between aggregated and contained objects?

509


Once I have developed the com wrapper do I have to still register the com in registry?

663