AppDomain and ThreadPool

forfcw 21 Reputation points
2021-10-09T08:06:15.287+00:00

Does all processes shared one AppDomain in .netcore 3+ as mentioned in HERE ? What is the relationship of threadpool, process and appdomain in .netcore 3+ and how can I verify it ?
Thanks!

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,125 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 56,686 Reputation points
    2021-10-09T15:19:04.943+00:00

    Processes don’t share an appdomain, in .net core, each process supports one “appdomain”.

    In the old framework, an appdomain was an isolation tool. A process could host multiple appdomains and they could communicate with each other via marshaling. An appdomain could be unloaded. This was commonly used for plugin architecture. The plug-in could crash without hurting other host domains. Domains could load other domains. So they could be controlled with c# code.

    None of this support was added to .net core. Instead they have focused on loading and unloading assemblies similar to c/c++

    In reality there is no real appdomain support in .net core. .net core is runtime hosted by an application.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful