.Net Framework Architecture :
.Net framework contains the following components
1. CLR ( common Language Runtime )
i. CLS ( Common Language Specification )
ii. CTS ( Common Type System )
iii. JIT compiler (Just in time compiler)
iv .GC (garbage collector )
2. Base Class Libraries.
The .NET Framework provides a run-time environment called the common language runtime, which runs the code and provides services that make the development process easier.
The common language runtime makes it easy to design components and applications whose objects interact across languages.
Benifits of CLR :
Common Language Specification (CLS ) :.Net framework contains the following components
1. CLR ( common Language Runtime )
i. CLS ( Common Language Specification )
ii. CTS ( Common Type System )
iii. JIT compiler (Just in time compiler)
iv .GC (garbage collector )
2. Base Class Libraries.
The .NET Framework provides a run-time environment called the common language runtime, which runs the code and provides services that make the development process easier.
The common language runtime makes it easy to design components and applications whose objects interact across languages.
Benifits of CLR :
- Performance improvements.
- Extensible types provided by a class library.
- Language features such as inheritance, interfaces, and overloading for object-oriented programming.
- Support for explicit free threading that allows creation of multithreaded, scalable applications.
- Support for structured exception handling.
- Garbage collection.
This is one of the component of CLS. Every programming in .net framework has its own specifications and syntaxes and every programming language follows it.
CLS is responsible for this and its also provides support for language interoperablity.
Language Interoperablity :
Language Interoperability is the ability of code to interact with code that is written using a different programming language. Language Interoperability can help maximize code reuse and, therefore, improve the efficiency of the development process. This is possible using Managed code and unmanaged code.
Managed Code :Managed code means which CLR can understand
ex : MSIL
Unmanaged Code :
This is the code which CLR doesn,t understand because it may be written using non .net framework languages.Due to this, there is no execution support from CLR for unmanaged code. It should be executed directly by operating system
ex: COM objects, DCOM objects, WIN32 API's etc.
Common Type System (CTS) :
In Microsoft's .NET Framework, the Common Type System (CTS) is a standard that specifies how Type definitions and specific values of Types are represented in computer memory.
It is intended to allow programs written in different programming languages to easily share information.
As used in programming languages, a Type can be described as a definition of a set of values (for example, "all integers between 0 and 10"), and the allowable operations on those values (for example, addition and subtraction).
CTS will take care of datatype problems in .net framework code execution.
Garbage Collector (GC ) :
The garbage collection (GC) is new feature in Microsoft .net framework. When we have a class that represents an object in the runtime that allocates a memory space in the heap memory.
All the behavior of that objects can be done in the allotted memory in the heap. Once the activities related to that object is get finished then it will be there as unused space in the memory.
In such situations, Garbage collector will come and attack on unused and unnecessary objects and releases memory which could be used to further usage.
GC provides automatic memory management.
JIT Compiler :
when .NET programs are executed, the CLR activates the JIT complier. The JIT complier converts MSIL into native code.
when you compile your code using vb.net then vb.net compiler converts your code into MSIL and if any request arrives, CLR activates JIT for platform independent features. JIT converts your MSIL into native code means the way your system adapts.
There are three components in JIT compiler .They are
1.PreJIT compiler
2.Normal JIT compiler
3.EchonoJIT compiler.
.Net Framework Versions :
CLS is responsible for this and its also provides support for language interoperablity.
Language Interoperablity :
Language Interoperability is the ability of code to interact with code that is written using a different programming language. Language Interoperability can help maximize code reuse and, therefore, improve the efficiency of the development process. This is possible using Managed code and unmanaged code.
Managed Code :Managed code means which CLR can understand
ex : MSIL
Unmanaged Code :
This is the code which CLR doesn,t understand because it may be written using non .net framework languages.Due to this, there is no execution support from CLR for unmanaged code. It should be executed directly by operating system
ex: COM objects, DCOM objects, WIN32 API's etc.
Common Type System (CTS) :
In Microsoft's .NET Framework, the Common Type System (CTS) is a standard that specifies how Type definitions and specific values of Types are represented in computer memory.
It is intended to allow programs written in different programming languages to easily share information.
As used in programming languages, a Type can be described as a definition of a set of values (for example, "all integers between 0 and 10"), and the allowable operations on those values (for example, addition and subtraction).
CTS will take care of datatype problems in .net framework code execution.
Garbage Collector (GC ) :
The garbage collection (GC) is new feature in Microsoft .net framework. When we have a class that represents an object in the runtime that allocates a memory space in the heap memory.
All the behavior of that objects can be done in the allotted memory in the heap. Once the activities related to that object is get finished then it will be there as unused space in the memory.
In such situations, Garbage collector will come and attack on unused and unnecessary objects and releases memory which could be used to further usage.
GC provides automatic memory management.
JIT Compiler :
when .NET programs are executed, the CLR activates the JIT complier. The JIT complier converts MSIL into native code.
when you compile your code using vb.net then vb.net compiler converts your code into MSIL and if any request arrives, CLR activates JIT for platform independent features. JIT converts your MSIL into native code means the way your system adapts.
There are three components in JIT compiler .They are
1.PreJIT compiler
2.Normal JIT compiler
3.EchonoJIT compiler.
.Net Framework Versions :
No comments:
Post a Comment