Sunday, July 12, 2009

Garbage Collection (GC)

CLR also contains Garbage Collector (GC), Which runs in a low priority thread and checks for un-referenced, dynamically allocated memory space. If it finds some data that is no longer referenced by any variable/reference, it re-claims it and returns it to the OS. The presence of Garbage Collector frees the programmer keeping track of dangling data. Ask any C++ Programmer how big a relief it is !!! :)

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.