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!

Developer technologies | .NET | .NET Runtime
0 comments No comments
{count} votes

Answer accepted by question author
  1. Bruce (SqlWork.com) 82,146 Reputation points Volunteer Moderator
    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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.