How is CLR loaded and working?
When running Windows applications, CLR always serves them silently. How can CLR be loaded and run?
First, Microsoft defines a standard COM interface for CLR.
Install a certain version of. NET Framework. CLR is included in the DLL and registered as a COM server in the Windows registry.
Multiple CLR versions may be installed on one computer. Enter clrver.exe to view the CLR version installed on the current computer.
For example, in C: \ Windows \ Microsoft. NET \ Framework \ v2.0.50727 folder, CLR is included in mscorwks. dll; in C: \ Windows \ Microsoft. NET \ Framework \ v4.0.30319 folder, CLR is included in clr. dll.
Double-click an application to start an independent Windows process. the latest version of NET has a folder similar to MSCoreEE. dll components to read the application.. NET version, and then load the corresponding CLR version to the process. In short, CLR is hosted in the process.
Can there be several CLR versions in a process?
Starting from. NET 4.0, you can load multiple CLR versions in a process without causing compatibility issues.
When is CLR uninstalled?
The CLR can be uninstalled only when the process is terminated.
CLR loads all the assemblies in mscorlib.
CLR loads the managed heap.
The CLR loads application domains and can load multiple application domains. By default, the loaded application domains are set to "startup project.
Run multiple threads in the application domain. Some threads are the main threads and some are the working threads.