If at first you don't succeed, call it version 1.0

Contact Me

Sarvesh Kushwaha
Email : sarveshkushwaha@outlook.com

Total Pageviews

Powered by Blogger.

Sunday 6 April 2014

CLR in .Net


Common Language Runtime : 

As its names depicts, its an execution environment for .Net applications (.Net supported languages). CLR job is managing the application while it executes.CLR manages the execution of programs written in supported language of .NET framework like (C#, Visual Basic, F#, IronPython, IronRuby, Boo, etc.).


Below are the some services CLR provides when its manages the .NET application :

  1. Memory management
  2. Operating system and hardware independence
  3. language independence
  4. Security 
1. Memory Management : 

CLR actively tracks the objects you have created and memory things and CLR knows when you have finished your work with that object and you are finished with that memory then CLR cleans that memory so your program or application have enough memory to work further.

2. Operating System and Hardware independence :



















.NET executable file (.EXE) is not a native window application , its made up of instructions called Common intermediate language (CIL) and sometimes its called Microsoft intermediate language (MSIL) .
Any device which has any kind of CLR can run the .Net applications .Like java application can run only where java virtual machine is installed .we can say CLR is like JVM (java virtual machine) and CIL is like java bytecode .
CLR is like a virtual machine its virtualizes the execution environment for .net application , you don't have to worry about what version of .net application , what specific cpu is being used.

3. Language independence : 
    
 All .net supported language    ( VC#.Net,VB.Net,VC++,VJ#,VF#,PHP,COBOL,PERL, PHYTHON, SMALLTALK,JSCRIPT...etc ) is managed by CLR .Programmes/application in any of Visual Basic , Visual C++ ,F#, or C# after compile they turns into an intermediate form of code called Common Intermediate Language (CIL) in a portable execution ( PE ) file that can then be managed and executed by the Common Language Runtime. 

4. Security : 
CLR enforces Policy, Permissions on the .net applications . CLR applies the code access secuirty on the application . to understand it better please follow the link : http://msdn.microsoft.com/en-us/magazine/cc188939.aspx

As all of the above are vast topic in itselfs , people have written book on just CLR .Tried to make you understand the overview of CLR hope you guys will like this article . :) :) 

1 comment:

  1. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.
    Advanced AWS Training in Bangalore | Best Amazon Web Services Training Institute in Bangalore
    Advanced AWS Training Institute in Pune | Best Amazon Web Services Training Institute in Pune
    Advanced AWS Online Training Institute in india | Best Online AWS Certification Course in india

    ReplyDelete