是CLR加载和初始化每次,当一个新的托管应用程序加载?加载、初始化、应用程序、CLR

2023-09-02 21:11:52 作者:抢我男神睡我男人挖你祖坟

是CLR加载和初始化每次,当一个新的托管应用程序加载,并有一个托管的应用程序已经present?

Is CLR loaded and initialized everytime, when a new managed application is loaded and there is a managed application already present?

例如。如果我的机器上,应用TestApp运行之后,我开始另一个应用程序DemoApp。在这种情况下,wiill CLR被再次加载DemoApp?否则将使用由TestApp加载的同一个?

e.g. If on my machine, application "TestApp" is running and after that I start another application "DemoApp". In this case, wiill CLR be loaded again for DemoApp? Or it will use the same one which is loaded by TestApp?

推荐答案

是的,和组件JIT编译的,堆的分配等等。 Windows映像加载器会有点帮助,但总的来说CLR的开销是每个进程。

Yes, and assemblies are JIT compiled, heaps are allocated and so forth. The Windows image loader will help a bit but in general the CLR overhead is per process.

 
精彩推荐
图片推荐