answersLogoWhite

0


Best Answer

"Unmanaged code" is a new name for an old concept. Unmanaged code stands for native machine code. Software is typically written in some high-level language such as Pascal, C or C++. These languages are translated into machine code (aka unmanaged code) by the compiler and its companion tools (assembler, linker, librarian, etc). The generated code runs natively on the host processor; that is, the processor directly executes the code generated by the compiler. This approach typically results in fastest code execution, but diagnosing and recovery from errors might be easier in managed code. Managed code is a new name, but the concept also is pretty old. Today, "managed code" typically stands for the system used by Microsoft .NET, but .NET is just one example of a managed code system. The .NET system takes source code in any of the supported languages (which include C, C++, C#, Pascal, and many others), and translates it into code designed for a virtual machine. The real processor cannot execute this code natively, but it can execute a program which then in turn executes the virtual machine's codes. The program that executes the virtual machine code is known as the virtual machine. While potentially slower than native code execution, the virtual machine can manage code (!) better than real machines. For example, the virtual machine can supervise memory allocation, automatically handle disposal of unused memory, and provide many other services that a native (unmanaged) application typically must explicitly provide. If the virtual machine does its job correctly, all applications using this virtual machine are likely to benefit. Virtual machines are also known under other names. In the Java system, the tool is called a JVM, a Java Virtual Machine. In the Microsoft .NET system, the intermediate language is called MSIL (Microsoft intermediate language), which are executed through a Just-in Time MSIL compiler (JIT-compiler). Early implementations of Pascal generated an intermediate code called P-code, executed at runtime through some P-code interpreter. Other forms of managed code exist.

User Avatar

Wiki User

17y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

Managed means garbage collector takes care of resources which are not used any more. If you are using unmanaged code you are on your own taking care of disposing resources.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What do you mean by managed and unmanaged code in net?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Managed code in relation to net framework?

Managed code basically means that code is being executed in a virtual environment. Code written on the .NET framework is managed by the Common Language Runtime.


Is Visual Basic code not managed by default in .Net framework?

VB.NET code is managed by the CLR virtual machine.


What is advantage of csharp over c plus plus?

C# is 100% object-oriented whereas C++ is not; C++ supports the concept of primitive variables which are not implemented as objects, and therefore allows managed and unmanaged code to interoperate. C# is not unlike Java in many respects; the source code compiles to byte code rather than machine code. However it employs a syntax that is familiar to C++ coders. However, unlike Java, C# is not cross-platform and is intended for Windows .NET development only.


Timing diagram read operation in microprocessor8085 program code in NET?

adressing modes and their types


Why the .net is platform dependent?

Ya .Net is platform independent as well as dependent.Once the code is written , it is then compiled into MSIL (Microsoft Intermediate Language) which is independent of platform, here the CLR (Common Language Runtime) comes into picture and it consists of JIT(Just In Time)compiler which is going to convert the MSIL code into platform/device specific code. So We have CLR for Windows and CLR for Linux. Here its dependent of the type of machine its running on. So its Dependent.

Related questions

What following code is not managed by default in .Net framework?

By definition, all .NET Framework code is managed. You only have to worry about unmanaged code if you reference COM libraries or, of course, write any unmanaged code yourself.


Managed code in relation to net framework?

Managed code basically means that code is being executed in a virtual environment. Code written on the .NET framework is managed by the Common Language Runtime.


Is Visual Basic code not managed by default in .Net framework?

VB.NET code is managed by the CLR virtual machine.


What is advantage of csharp over c plus plus?

C# is 100% object-oriented whereas C++ is not; C++ supports the concept of primitive variables which are not implemented as objects, and therefore allows managed and unmanaged code to interoperate. C# is not unlike Java in many respects; the source code compiles to byte code rather than machine code. However it employs a syntax that is familiar to C++ coders. However, unlike Java, C# is not cross-platform and is intended for Windows .NET development only.


Why called dot net language?

.NET is the underlying framework of the language. Every language running under .NET is interpreted into ILASM (Intermediate Language Assembly) Which is then compiled into bytecode, then executed in a managed code environment. This complicated process is what allows many language to be coded on top of the platform.


What about clr?

== CLR.. common language runtime is the environment in which managed code executes.for details seehttp://dotnetscoups.blogspot.comSee Related Links == See the Related Links for ".Net Cornucopia" to the bottom for the answer.


How is Windows programming different from NET programming?

In Windows Programming the application programs call windows API function directly. The applications run in the windows environment i.e. operating system itself. These types of applications are called unmanaged or unsafe applications.In .NET Programmingthe application programs call .Net Base Class library functions which will communicate with operating system. The applications run in .Net Runtime environment. These types of applications are called as managed or safe applications. The .Net Runtime starts code execution, manages threads, provides services, manages memory etc. The detailed description is provided in next section. The .Net Base classes are fully object-oriented. It provides all functionalities of traditional windows API along with functionalities in new areas like accessing database, internet connections and web services.


Whats is Net credit margin?

Net credit margin is net interest income minus net credit losses, as a percentage of average managed outstanding balances


Which is better, regular in house security, or managed security services?

Both have their advantages, but managed security services mean you're protected from net crime 24/7. Managed systems also allow you to mix and match to suit your specific business needs, leading to lower security costs and simplifying management.


What is the nova net bypass code?

The Nova Net bypass code is a code that your instructors and administrators use to remove flags on your modules.


What is the mean of DOT?

.net is technology in which we can design application as we wish and can write code in c# or vb anyone language


Lf4 turbo character code?

lf2.net lf2.net