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
What is the significance of proxy user?
How do cookies work?
What is the purpose of asp.net?
What is difference between mvc and asp.net? : Asp.Net MVC
How do you do Client-side validation in .Net?
Differentiate between client-side and server-side validations in web pages.
What is preprocessor in .net?
What is a web api?
What is .net remoting?
Difference between application events and session events
How to fetch a data from one table to another table in asp.net ?
What is the difference between CC and BCC?
What is the main difference between Asp.net and Vb.net?
Define satellite assemblies.
Explain the use of errorprovider control in .net?