Solved

Could someone explain me the difference between managed and unmanaged code/executable?

Posted on 2011-09-23
10
311 Views
Last Modified: 2012-06-27
Hi there;

Could someone explain me the difference between managed and unmanaged code/executable?

Regards.
0
Comment
Question by:jazzIIIlove
  • 5
  • 2
  • 2
  • +1
10 Comments
 
LVL 7

Accepted Solution

by:
dimaj earned 200 total points
ID: 36590231
0
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 200 total points
ID: 36593998
Crudely:

       Managed: .NET/Java
   Unmanaged: C/C++

When you think of "managed" code, think "garbage collector".
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36594052
I got the confuision as does managed  concern Microsoft techs. only or concern java?

Regards.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 200 total points
ID: 36594244
I don't recall anyone ever actually mentioning the term "managed" when speaking about Java, but you can think of Java as such. As I said previously, the term "managed" refers to the fact that you have a garbage collector managing the deletion of dynamic memory for you. In a C/C++ environment, you must take care to delete any dynamic memory you allocate.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36717428
Ok, so how can one differ the executables (considering we have no idea regarding a GC is managing the code)

Regards.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36816600
I mean let's say u have an executable. How can you understand it's managed or unmanaged?

Regards.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36925828
Any update?

Kind regards.
0
 
LVL 7

Assisted Solution

by:dimaj
dimaj earned 200 total points
ID: 36926096
0
 
LVL 44

Assisted Solution

by:AndyAinscow
AndyAinscow earned 100 total points
ID: 36928975
>>How can you understand it's managed or unmanaged?

If .net is not installed then a managed application will not run.  Unmanaged has no requirement for .net runtimes to be installed.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36933808
Good and sensible :)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now