Solved

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

Posted on 2011-09-23
10
313 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 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