| Author: Kumar Velu 18 Jun 2008 | Member Level: Diamond Points : 2 |
Application domains is to isolate tasks that might bring down a process. If the state of the AppDomain that's executing a task becomes unstable, the AppDomain can be unloaded without affecting the process. This is important when a process must run for long periods without restarting. You can also use application domains to isolate tasks that should not share data.
|
| Author: mahendrakiran 13 Nov 2008 | Member Level: Gold Points : 2 |
The primary purpose of the AppDomain is to isolate an application from other applications.
Win32 processes provide isolation by having distinct memory address spaces. The .NET runtime enforces AppDomain isolation by keeping control over the use of memory .All memory in the AppDomain is managed by the .NET runtime, so the runtime can ensure that AppDomains do not access each other's memory.
Objects in different application domains communicate either by transporting copies of objects across application domain boundaries, or by using a proxy to exchange messages.
|