Saturday, July 18, 2009

Chapter 8-Lesson 1

  • Operating System manages processes, while .NET Runtime manages Application Domains.
  • If we consider an Assembly as class, then its instances could be called Application Domains.
  • If an Application uses more than one assembly, it is possible to create a seperate process for each of them. The problem would be the performance hit ad resource usage caused between context shifts from one process to another. Therefore it is better to use one Assembly that acts as a host for other Assemblies. Then we may share resources (data) among Assemblies within an Application Domain. (e.g. ASP.NET Application object is an Application Domain)
  • Points-to-Ponder: (See page 439)
  • AppDomain class allows for creating Application Domains within .NET
  • AppDomain.CreateDomain( ) static method is used to create a new Application Domain with a friendly name, and RunAssembly( ) instance-level method is used to load an Assembly within a domain.

No comments:

Post a Comment