Application domain
An application domain is the product of a mechanism (similar to a process in an operating system) used within the Common Language Infrastructure (CLI) to isolate executed software applications from one another so that they do not affect each other.[src] Each application domain has its own virtual address space which scopes the resources for the application domain using that address space.[src] Creating multiple application domains in the same process is not possible in .NET Core and .NET 5+.[src]
An application domain is the product of a mechanism (similar to a process in an operating system) used within the Common Language Infrastructure (CLI) to isolate executed software applications from one another so that they do not affect each other.[src] Each application domain has its own virtual address space which scopes the resources for the application domain using that address space.[src] Creating multiple application domains in the same process is not possible in .NET Core and .NET 5+.[src] ==Properties== A CLI application domain is contained within an operating system process.[src] A process may contain many application domains.[src] Application domains have isolation properties similar to that of operating system processes: Multiple threads can exist within a single application domain.[src] An application within a domain can be stopped without affecting the state of another domain in the same process.[src] A fault or exception in one domain does not affect an application in another domain or crash the entire process that hosts the domains.[src] Configuration information is part of a domain's scope, not the scope of the process.[src] Each domain can be assigned different security access levels.[src] Code in one domain cannot directly access code in another.[src] In this sense, a CLI is like a mini-operating system.[src] It runs a single process that contains a number of sub-processes, or application domains.[src] The advantage of application domains is that running multiple application domains may require fewer resources, such as memory, than running multiple operating system processes.[src] Communication between domains still requires marshalling, so the overheads can be closer to using multiple processes than to communicating within a single domain.[src] ==Inter-domain communications== Direct communication cannot be achieved across application domains.[src] However, application domains can still talk to each other by passing objects via marshalling by value (unbound objects), marshalling by reference through a proxy (application-domain-bound objects).[src] There is a third type of object called a context-bound object which can be marshalled by reference across domains and also within the context of its own application domain.[src] Because of the verifiable type-safety of managed code, a CLI can provide fault isolation between domains at a much lower cost than an operating system process can.[src] The static type verification used for isolation does not require the same process switches or hardware ring transitions that an operating system process requires.[src] ==Managed code== Application domains are a purely managed code concept.[src] Any included native/unmanaged code (e.g., C++) is largely unaware of them.[src] Static variables seem to be shared across domains, callbacks can be problematic, and any memory corruption bugs in one domain is likely to corrupt other domains.[src] ==References== Microsoft Developer Network page on application domains Unmanaged callbacks across AppDomains[src]
27 sentences · 27 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Application domain." encyclopegia.org, 2026, https://encyclopegia.org/wiki/application-domain. Accessed 25 November 2026.
Chicago
"Application domain." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/application-domain.
APA
encyclopegia.org. (2026). Application domain. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/application-domain
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON