Saved Bookmarks
| 1. |
What is a garbage collector? |
|
Answer» GARBAGE collector frees the unused code objects in the memory. The memory heap is partitioned into 3 generations:
Collection of garbage refers to checking for objects in the generations of the managed heap that are no LONGER being USED by the application. It ALSO performs the necessary operations to RECLAIM their memory. The garbage collector must perform a collection in order to free some memory space. During the garbage collection process:
System.GC.Collect() method is used to perform garbage collection in .NET. |
|