InterviewSolution
| 1. |
What is meant by Managed and Unmanaged code? |
|
Answer» The code being managed by the CLR is CALLED Managed code. This code basically runs within the CLR. Thus, it is important to get the .Net framework installed in order to execute the managed code. CLR manages its memory through garbage collection and even uses the other FEATURES of .Net like CAS and CTS for proper and perfect management of the code. Following steps are followed while executing a Managed code:
On the other hand, Unmanaged code is any code that does not at all depend on CLR for execution which means it is developed by any other language other than .Net framework. It even uses its own runtime environment for compiling and execution of the data. Though it is not being run inside the CLR, but the unmanaged code works PROPERLY if all the other parameters are correctly mentioned here. |
|