views:

188

answers:

6

i want to know the internal architecture and function of the garbage collector in dotnet in detail.. can anybody help me.

+11  A: 

.NET uses a generational garbage collector, MSDN link.

Hassan Syed
what ever u sent is not basics..it is some advanced and performance related article...i want some basics like how it will start and collect..that algorithm...
muthukumarm
The article tells you a lot about the implementation. It is titled " >> Garbage Collector Basics << and Performance Hints". Did you even read it ? you wanted basics right ?
Hassan Syed
Your original post also said you wanted basics and detail..... choose one please.
Hassan Syed
The basics of GC is that "it collects unreferenced objects". Any implementation details are inevitably going to be more advanced.
Pavel Minaev
+4  A: 

See

Garbage Collector Basics and Performance Hints

rahul
+3  A: 

To study the source code of the Garbage Collector itself, you can download and study the Rotor source, or the Mono source.

There is also a nice speech on the future of the Garbage collector, that handles some internals. You can find it here.

GvS
+3  A: 

In addition to the excellent suggestion to study Rotor by GvS you should also look at the following videos which talks about the some more details of the GC internals.

Also note the Rotor implementation is different from the RTM version of GC which means it is not the exact same logic in .NET, but it is good enough to get you to understand the principles.

bahree
+1  A: 

Sorry, but this part 2 as I cannot add more links to the previous answer.

bahree
+2  A: 

Sorry, but this last part as I cannot add more links to the previous answer.

bahree