Why is an Object Pool required? - C#.NET

Why is an Object Pool required?

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

This reduces the overhead of creating and re-creating objects each time an object creation is required.

To enhance performance and reduce the load of creating new objects, instead re using existing objects stored in memory pool. Object Pool is a container of objects that are for use and have already been created. Whenever an object creation request occurs, the pool manager serves the request by allocating an object from the pool. This minimizes the memory consumption and system's resources by recycling and re-using objects. When the task of an object is done, it is sent to the pool rather than being destroyed. This reduces the work for garbage collector and fewer memory allocations occur.
How to implement an Object Pool in C#.NET.
Explain how to implement an Object Pool in C#.NET - using System; using System.Collections;...
Web Services - major components that make up a Web Service
Major components that make up a Web Service - SOAP (Simple Object Access Protocol)...
How to implement a Web Service in .NET
How to implement a Web Service in .NET -....
Post your comment