The heart of Dot Net framework is CLR (Common Language
Runtime). The CLR has multiple below responsibilities:
1.
Efficiently allocated object on managed heap.
2.
If an object is not in use, clear the memory
used by the object.
3.
Keep the memory available for any future objects
allocations.
The CLR triggers the garbage collection when one of the
condition is met.
1.
The memory used by allocated objects has passed
the threshold value set by CLR.
2.
The system has got low memory.
3.
The GC. Collect method is called on Object
explicitly.
No comments:
Post a Comment