Sunday, July 26, 2009

Chapter 10-Lesson 3

  • An isolated task performed by Operating System is called a Process.
  • An application may be using 1 or more processes.
  • 32-bit processors can allocate a maximum of 4GB memory.
  • Within the memory, a Virtual Memory Manager keeps setting in the form of 4KB memory pages (chunks) that it assigns to processes as and when required.
  • Process class in System.Diagnostics namespace is used to handle processes through .NET
  • GetProcessById( ) static method takes ID of a process as argument and throws an ArgumentException if one is not found.
  • Performace for applications running on Windows can be measured using PerformanceCounter class, since it uses Registry to store values retrieved from code.
  • CounterCreationData may be used to specify Name, Type and other information related to a PerformanceCounter.
  • PerformanceCounterCategory class is used to manage and manipulate PerformanceCounter objects.
  • The Start( ) method of the Process class may be used to invoke an outside process.
  • If we use the overload of Start( ) method that takes Username and Password, then the UseShellExecute property must be set to false.
  • ProcessStartInfo object may also be passed to Start( ) method to specify process name and any Command-line arguments.
  • The StackTrace object represents the CLR Stack trace for a given application.
  • StackTrace is composed of StackFrames which represent individual method calls.

No comments:

Post a Comment