C# Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 3.2

Memory Usages of Processes

This chapter provides tutorial examples and notes on memory usages of processes. Topics include using System.Diagnostics.Process class to report memory usages; validating private and virtual memory usages using Task Manager and Performance console.

Using "Process" Class to Show Memory Usages

Private/Virtual Memory and Working Set

Footprints of Private and Shared Memories

Virtual Memory Upper Limit

Memory Report from Windows Task Manager

Memory Report from Performance Console

Conclusions:

  • The System.Diagnostics.Process class can be used to report private and virtual memory usages.
  • Private memory is the private portion of memory used by the process.
  • Virtual memory is the total memory allocated to the process.

Table of Contents

 About This Book

 Introduction of C# (C Sharp)

 Data Type and Variables

 Logical Expressions and Conditional Statements

 Arrays and Loop Statements

 Data Type Features

 Floating-Point Data Types

 Passing Parameters to Methods

 Execution Environment Class

 Visual C# 2010 Express Edition

 Class Features

 C# Compiler and Intermediate Language

 Compiling C# Source Code Files

Memory Usages of Processes

 Multithreading in C#

 System.IO.FileInfo Class

 System.Diagnostics.FileVersionInfo Class

 References

 PDF Printing Version

Dr. Herong Yang, updated in 2012
Memory Usages of Processes