Each managedProgramAt least one default appdomain will be started at startup.
Appdomain provides the isolation Function
1) One application domain cannot directly access objects in other application domains
2) The application domain can be detached. You Cannot uninstall a loaded application domain, but you can choose to uninstall an application domain.
3) The application domain can have independent Permissions
4) The application domain can have independent configurations (App. config or something ....)
Generally, if the two application domains load the same DLL (such as system. dll), the loaded DLL requires 2 times the memory and exists in both application domains.
Some assemblies are neutral in the application domain (such as mscorlib. dll). These DLL files are still only one copy when loaded by multiple application domains (to prevent memory waste)
PS: I personally think it may be dangerous to load untrusted third-party DLL (for example, this dll may containCodeGenerally, an appdomain and smaller permissions are assigned to the user independently.