How does Garbage collector(GC) works in .net

Answer Posted / ponvanaraja

1.The .NET Framework's garbage collector manages the
allocation and release of memory for your application.

2. Each time you create an object, the runtime allocates
memory for the object from the managed heap.
3.The garbage collector must perform a collection in order
to free some memory. The garbage collector's optimizing
engine determines the best time to perform a collection,
based upon the allocations being made.
4.When the garbage collector performs a collection, it
checks for objects in the managed heap that are no longer
being used by the application and performs the necessary
operations to reclaim their memory.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the significance of proxy user?

619


How do cookies work?

594


What is the purpose of asp.net?

543


What is difference between mvc and asp.net? : Asp.Net MVC

570


How do you do Client-side validation in .Net?

577






Differentiate between client-side and server-side validations in web pages.

560


What is preprocessor in .net?

537


What is a web api?

555


What is .net remoting?

571


Difference between application events and session events

593


How to fetch a data from one table to another table in asp.net ?

585


What is the difference between CC and BCC?

618


What is the main difference between Asp.net and Vb.net?

569


Define satellite assemblies.

586


Explain the use of errorprovider control in .net?

511