February 2010
Beginner
400 pages
11h 13m
English
Garbage collection is something you rarely have to worry about in our nice managed world, so before you look at what has changed in .NET 4.0, let's quickly recap how garbage collections currently works to put the new changes in context.
As you probably know, the CLR allocates memory for your applications as they require it, and assumes that an infinite amount of memory is available (you wish). This is a mad assumption, so a process called the garbage collector (GC) is needed in order to clean up unused resources. The GC keeps an eye on available memory resources and will perform a cleanup in three situations:
When a threshold is exceeded
When a user specifically calls the GC ...