Understanding the AppDomain

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.