How to free the memory that is not used by an object in
garbage collection?

Answer Posted / srinivas

in garbage collection,heap is divided into
generations,g1,g2,g3.all available objects stored in g1,if
g1 is full,then garbage collector performs the collection
process,in that fist identify the ideal object and used
objects,second delete the used objects and ideal objects are
put in to finalization queue,and then use genarations.

then we get free memory in garbage collection

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the 'page lifecycle' of an ASP.NET MVC?

629


mention what is code first approach and model first approach in entity framework?

631


What is .net framework & its benefits?

524


How to update one of my table in database at 4pm every day how it is possible?

555


I want to fetch data from datareader. i have three tables in datareader. i want to bind my two table with datagrid, then i want to fetch a value from my third table. do u have any idea pls help me. we use dr.nextresult() for multiple tables.

2171






Explain the role of assembly in the .net framework.

570


How to use multiple submit buttons in asp.net mvc?

588


What is a model in android?

495


Is it possible to create a custom filter?

567


How the ‘page lifecycle’ of ASP.Net MVC does works?

595


How can you return string result from Action in ASP.Net MVC?

559


What is viewdata?

589


What is iobjectset? : Entity framework

589


Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?

550


What are the benefits of .net framework?

565