Simple understanding of application domains, application domains
When it comes to application domains, we need to start with the CLR (Common Language RunTime) Public Language RunTime.
The code running on CLR is called managed code, and an important mechanism for managed code is called type security,
This mechanism checks whether the code accesses invalid memory addresses,
Checks whether the code is executed and causes the process to fail. The process refers to the process where the CLR is located.
CLR isolates applications through application domains,
The benefit of isolation is that different application domains do not affect each other, even if an application domain in the process fails,
Other application domains will not be affected, and the application domain consumes a small amount of cpu resources.
This is the role of the application domain.