| Here is the some of basic function of garbage collector
(1)Garbage collector first function to reserves a piece of memory as the application starts for the managed heap.
(2)After that Garbage collector controls the managed heap memory currently used and available to an application.
(3)Garbage collector also helps to allocates memory for new objects within the application.
(4)The Garbage Collector attempts to reclaim the memory of objects that are not referenced in the application. | | |