Header Ads

Unmanaged Code vs. Managed Code

Difference between Unmanaged Code and Managed Code

Unmanaged Code :

Unmanaged executable files are binary images of x86 code loaded into memory. The role of the operating system in this case is to load the application into memory and let it run. Although there are some protections regarding memory management and I/O ports, the operating system does not have any idea what the application is doing.

Managed Code

By contrast, managed code is under full control of the operating system. At any point in time, the operating system can stop running the CPU and investigate the runtime state. It can also insert exception handling, array bounds and indexes, traps, garbage collection hooks, and other things. In this way, it mitigates a whole class of security concerns and typical programming errors. All programming languages that support the .NET Framework produce managed code. There are currently over 30 such languages. Several are provided by Microsoft (C#, Visual Basic .NET, managed C++, J#, JScript .NET), while others are developed by third parties (everything from COBOL to Pascal).

1 comment:

  1. After going over a number of the blog articles
    on your blog, I seriously appreciate your technique of writing a blog.
    I bookmarked it to my bookmark site list and will be checking
    back soon. Take a look at my web site too and let me know your opinion.


    My blog: bmr calculator

    ReplyDelete

Powered by Blogger.