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. |
Sunday, May 8, 2016
Difference between Managed and Unmanaged code in ASP.net
Labels:
C,
C#,
C++,
CIL,
CLR,
Common,
compilation,
compiler,
Garbage collector,
IL,
JIT,
Machine,
managed code,
MSIL,
Native,
Operating,
OS,
System,
Type checking,
unmanaged code
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment