Book Details

Pro VB 2008 and the .NET 3.5 Platform

Publication year: 2008

: 978-1-4302-0200-4

:


The point of this chapter was to demystify the garbage collection process. As you have seen, the garbage collector will only run when it is unable to acquire the necessary memory from the m- aged heap (or when a given AppDomain unloads from memory). When a garbage collection does occur, you can rest assured that Microsoft’s collection algorithm has been optimized by the use of object generations, secondary threads for the purpose of object finalization, and a managed heap dedicated to host large objects. This chapter also illustrated how to programmatically interact with the garbage collector using the System. GC class type. As mentioned, the only time when you will really need to do so is when you are building finalizable or disposable class types. Recall that finalizable types are classes that have overridden the virtual System.


: Professional and Applied Computing, .NET, ASP.NET, LINQ, SQL, Visual Basic, Web Services, Windows, XML, computer science, functional programming, interfaces, language, programming, software, user interface, Microsoft and .NET, Software Engineering, Programming and Operating Systems