- Application Domain - a logical container. Allows mult. assemblies to run within a single process, but prevents them from accessing other assemblies' memories.
- App Domain - like a process - separate memory spaces + access to resources.
- App Domain - more efficient than processes - allow mult. assemblies to run in separate app domains, without overhead of launching separate processes.
- App domains - keep assemblies separate within a single process
- .NF - manages app domains. O.S - manages processes.
- Create an App Domain - AppDomain d = AppDomain.CerateDomain("NewDomain");
- Load Assembly into an App Domain -
- 1) AppDomain d = AppDomain.CreateDomain("NewDomain");
- 2) d.ExecuteAssembly("Assembly.exe");
- Unload an App Domain - AppDomain.Unload(d); - individual assemblies cannt be unloaded.
Wednesday, 14 November 2007
Chapter 8, lesson 1: Creating Application Domains.
assembly - defn - a software component that support plug-and-play. A .NET assembly is a deployable unit. An assmebly is a logical DLL oe EXE and a manifest is a detailed description (metadata) of an assembly.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment