Pages

Sunday, May 8, 2016

Difference between Managed and Unmanaged code in ASP.net

Managed Code Unmanaged Code
1. Managed code is executed by the CLR, instead of Operating System. 1. Unmanaged code is executed by the Operating System directly.
2. Managed code gets the benefit of services provided by CLR like Memory Management (Garbage Collector), Thread Management, Exception handling, Type Checking etc. 2. Unmanaged code doesn't get any benefit of CLR and all things should be manage by programmer itself.
3. Code compiled by the compiler into the IL code and then again compiled by JIT to native/machine code. 3. Code compiled by the compiler into the Native/Machine code directly.
4. Ex. C#,J#,Vb.net etc. 4. Ex. Code written in C language, C++ language etc.

No comments:

Post a Comment