What is a .NET application domain?

后端 未结 4 1670
悲哀的现实
悲哀的现实 2020-11-27 11:57

In particular, what are the implications of running code in two different application domains?

How is data normally passed across the application domain boundary? I

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-27 12:53

    It is an isolation layer provided by the .NET runtime. As such, App domains live with in a process (1 process can have many app domains) and have their own virtual address space.

    App domains are useful because:

    • They are less expensive than full processes
    • They are multithreaded
    • You can stop one without killing everything in the process
    • Segregation of resources/config/etc
    • Each app domain runs on its own security level

提交回复
热议问题