Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between managed and unmanaged code?

Answer Posted / charles

Code that is executed by the CLR. Managed code provides
information (i.e., metadata) to allow the CLR to locate
methods encoded in assembly modules, store and retrieve
security information, handle exceptions, and walk the
program stack. Managed code can access both managed data
and unmanaged data. Managed data—Memory that is allocated
and released by the CLR using Garbage Collection. Managed
data can only be accessed by managed code


2.Code that targets the common language runtime, the
foundation of the .NET Framework, is known as managed code;
code that does not target the common language runtime is
known as unmanaged code. You can think of the runtime as an
agent that manages code at execution time, providing core
services such as memory management, thread management, and
remoting, while also enforcing strict type safety in the
code. The concept of code management is a fundamental
principle of the runtime.

3.Managed code supplies the metadata necessary for the CLR
to provide services such as memory management, cross-
language integration, code access security, and automatic
lifetime control of objects. All code based on IL executes
as managed code.

4.Code that executes under the CLI execution environment.
Managed code uses the execution environment for memory
management, object lifetime, and the basic type-system,
among other fundamental services.

Is This Answer Correct ?    25 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I tell what .net framework is installed?

1029


In which assembly is the mvc framework defined?

1088


What is session state management?

1055


What are ajax helpers in asp.net mvc?

1129


When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?

1049


What are the main components of .net framework?

1092


What is model first? : Entity framework

1115


Is .net framework 4.8 the last version?

1093


Is it possible to unit test an mvc application without running the controllers in an asp.net process?

1182


What is the advantage of using asp.net routing?

1153


What is connected scenario? : Entity framework

1119


How we can call a javascript function on the change of a dropdown list in mvc?

1111


Explain Model, view and Controllers in Asp.Net MVC?

1114


What are the benefits of .net framework?

1065


Does .NET Framework support SAX?

1064