什么是应用程序域 (AppDomain),它与进程或线程有何不同?
最佳答案
见 MSDN .
Application domains provide a more secure and versatile unit of processing that the common language runtime can use to provide isolation between applications. You can run several application domains in a single process with the same level of isolation that would exist in separate processes, but without incurring the additional overhead of making cross-process calls or switching between processes. The ability to run multiple applications within a single process dramatically increases server scalability.
AppDomain 基本上是托管代码的隔离执行环境。
关于.net - 什么是 .NET 应用程序域?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2368519/