Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How many instances of the CLR are running?

Tags:

.net-3.5

There is a simple Hello World Console Application. We compile it and get an assembly (EXE). The EXE is copied into 5 different folders and run from each of the locations. How many instances of the CLR are running when the 5 copied instances are running at the same time?”

like image 382
Kishore Kumar Avatar asked Jun 04 '10 04:06

Kishore Kumar


2 Answers

Each physical process gets its own copy of the CLR because each is hosted separately. Thus if you create 3 instances of your .NET app you will have 3 copies of the CLR running. Each process will have at least one AppDomain. Where it gets sort of tricky is with domain-neutral assemblies. Domain-neutral assemblies, like some of the system assemblies, are actually shared across AppDomains. This reduces the footprint of the CLR.

check original answer at : http://social.msdn.microsoft.com/Forums/en-US/clr/thread/238c5f43-1d12-4c80-a987-0b8fdfd6d7e4

like image 100
Pranay Rana Avatar answered Nov 30 '22 06:11

Pranay Rana


It runs 5 different processes each with its own CLR instance.

like image 27
this. __curious_geek Avatar answered Nov 30 '22 06:11

this. __curious_geek