How to Common Language Runtime
The Common Language Runtime (CLR) is an Execution
Environment . It works as a layer between Operating Systems and the
applications written in .Net languages that conforms to the Common Language
Specification (CLS). The main function of Common Language Runtime (CLR) is to
convert the Managed Code into native code and then execute the Program. The
Managed Code compiled only when it needed, that is it converts the appropriate
instructions when each function is called . The Common Language Runtime (CLR)
's Just In Time (JIT) compilation converts Intermediate Language (MSIL) to
native code on demand at application run time.
During the execution of the program ,the Common Language
Runtime (CLR) manages memory, Thread execution, Garbage Collection (GC) ,
Exception Handling, Common Type System (CTS), code safety verifications, and
other system services. The CLR ( Common Language Runtime ) defines the Common
Type System (CTS), which is a standard type system used by all .Net languages .
That means all .NET programming languages uses the same representation for
common Data Types , so Common Language Runtime (CLR) is a language-independent
runtime environment . The Common Language Runtime (CLR) environment is also
referred to as a managed environment, because during the execution of a program
it also controls the interaction with the Operating System. In the coming
section you can see what are the main functions of Common Language Runtime
(CLR).
How to Common Language Runtime - CLR
The Common Language Runtime (CLR) is a an Execution
Environment . Common Language Runtime (CLR)'s main tasks are to convert the
.NET Managed Code to native code , manage running code like a Virtual Machine
and also controls the interaction with the Operating System.
Common Language Runtime (CLR) manages Thread executions,
Memory Management that is allocation of Objects and Buffers , Garbage
Collection (GC) - Clean up the unused Objects and buffers , Exception Handling,
Common Type System (CTS) that is all .NET language that conforms to the Common
Language Specification (CLS) have the same primitive Data Types, Code safety
verifications - code can be verified to ensure type safety, Language integration
that is Common Language Runtime (CLR) follow a set of specification called
Common Language Specification (CLS) , this will ensure the interoperability
between languages, Integrated security and other system services.
No comments:
Post a Comment