一台计算机上运行的CLR和GC实例数? [英] Number of CLR and GC instances running on a machine?

查看:101
本文介绍了一台计算机上运行的CLR和GC实例数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了2个.NET应用程序,并在一台计算机上运行它们-会有多少CLR和gc?

I create 2 .NET applications and run them on a machine - how many CLR's and gc's will be there?

此外:我想了解一些背景知识有关Windows如何处理COM组件(尤其是CLR)的信息。希望有人可以详细说明CLR如何在内存中加载以及如果在运行此命令时列出了多个CLR实例,这意味着什么:

In addition: I would like to have some background information on how Windows handles COM components and CLR in particular. Hope someone could detail down to how CLR loads in memory and what it means if I get multiple CLR instances listed on running this command:

tasklist /m mscor* 

实际上是多个CLR还是单个CLR作为所有COM服务器.NET进程?

Is it multiple CLRs actually or a single CLR as a COM server for all .NET processes?

推荐答案

每个进程都将拥有自己的CLR副本作为托管进程。但是,由于CLR实际上只是几个DLL,因此Windows能够在进程之间共享这些DLL。有关更多信息,请参见: http://msdn.microsoft.com/zh-cn/ magazine / cc301727.aspx

Each process will have its own copy of the CLR as a hosting process. However, since the CLR is really just a couple of DLLs Windows will be able to share the DLLs between processes. For more information see: http://msdn.microsoft.com/en-us/magazine/cc301727.aspx

这篇关于一台计算机上运行的CLR和GC实例数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆