How is CLR loaded and working?

Source: Internet
Author: User

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.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.