I create 2 .NET applications and run them on a machine - how many CLR\'s and gc\'s will be there?
In addition: I would like to have some background information on ho
A managed exe has an additional CLR header in addition to the Portable Executable (PE format). The OS now is able to determine if the launched exe is a "managed" exe, and hence loads the CLR behind the scenes and gives it control.
It follows from the above that each managed executable's process would have its own copy of the CLR (2 Dlls). ManagedExecutable1 may be using CLR v1 whereas ManagedExecutable2 may be using CLR v2. They are not shared as of now.
The Garbage collector is part of the CLR and hence is also distinct across processes for managed executables.