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

What are action filters?

577


How we can invoke child actions in ASP.Net MVC?

553


explain what is ado.net entity framework?

548


What are Action Methods in ASP.NET MVC?

556


What is objectcontext? : Entity framework

569






What is latest version of .net framework?

645


What is routeconfig.cs in mvc 4?

619


What are differences between entity framework and l2s? : Entity framework

615


how do you mark a property as required? For example, for a project, the name is a required field.

554


What are HTML Helpers, AJAX Helpers in ASP.Net MVC?

548


What is ViewStart Page in ASP.Net MVC?

548


What is a razor file?

502


How to change the action name in ASP.Net MVC?

550


What are the components required to create a route in ASP.Net MVC?

565


What is Separation of Concerns in ASP.NET ASP.Net MVC?

580