In the traditional Win32 program, the process is independent of the running space, in some large-scale systems, usually the core functions of the system is decomposed in a separate process to deal with, on the one hand, in order to achieve higher system performance, throughput. On the other hand, in order to be able to isolate the error between functions, in order to make the function between non-interference, with the process of isolation, and then through the IPC or other means of inter-process communication, when a serious error in a function will not cause the entire system to force shutdown.
In fact, the original purpose of the. NET application domain is a bit of this meaning, using the AppDomain to isolate the error exception. When we develop large-scale systems, or the development of the core components of the system must be to consider the system's fault tolerance, especially in some real-time monitoring functions, is absolutely not allowed to interrupt the entire system of abnormal. So. NET gives us the concept of an AppDomain, which is the logical host of the program in the process. Since they are logical hosts, they still share the same address space. The concept of AppDomain is still not in the managed heap of the system.
Each executable application opens a process independently, and when the system loader gives control to the CLR,. NET hosts the application with the default AppDomain. The default application domain is open by. NET, and when the system starts up, we can create an application domain and then create objects within that domain.
Understanding the AppDomain