Module 9: Memory and Resource Management
Module 9: Memory and Resource Management
Resource Management
Overview
Developer Backgrounds
Manual vs. Automatic Memory
Management
Memory Management of .NET
Framework Types
Simple Garbage Collection
Developer Backgrounds
COM
Developers manually implement
reference counting and handle circular
references
C++
Developers manually use the new
operator and delete operator
Visual Basic
Developers accustomed to automatic
memory management
Manual vs. Automatic Memory
Management
Finalization
Garbage Collection with Finalization
Finalization Guidelines
Controlling Garbage Collection
Finalization
System.GC.WaitForPendingFinalizers()
Weak References
Generations
Additional Performance Features
Weak References
Performance monitoring
Large object heap
Multiprocessor support
Lab 9.1: Memory and Resource
Management
Review