managed code


managed code

(operating system)Code that is executed by the .NET common language runtime (CLR). VB.NET code is always managed codebut C++ .NET can optionally use unmanaged code. Managedcode provides metadata allowing the CLR to manage security(role-based as well as new approaches to code accesssecurity). The CLR also handles errors, manages the programstack and finds methods in assembly modules. Managed datais memory that's subject to garbage collection. There areadditional restrictions to permit interoperability ofdifferent languages, for example, Visual Basic arrays mustbe zero-based.

managed code

Managed code is an application that is executed within a runtime engine installed in the same machine. The application cannot run without it. Java, Visual Basic and .NET are examples of managed code.

The runtime environment provides the general library of software routines that the program uses and typically performs memory management. It may also provide just-in-time (JIT) conversion from source code to executable code or from an intermediate language to executable code. In addition, a DBMS may include a runtime engine for its programming language. Contrast with unmanaged code. See runtime engine, CLR and Java.