Tell me about the internal working of Garbage collector?

Answer Posted / kanth

The main objective of GC is Memory Management....
Gc wil take initiative when ever the application meemory is
low...we hav Finalize() method which runs implicitly...and
Dispose() method which we hav to kal Explicity....

Gc identifies the unused objects with reference counting
concept.
Finalize() method runs implicitly and free the resources if
the object havin no references...in the case of Dispose()
method it wont mind if the reference r ther.....

Gc maintain 4 Generation...start with 0 ..ends with 3
if GC released the resources using
Finalize method() still u can get the object..coz dis
method havin backup...it stores in generation0-3

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by domain model?

543


What is Area in ASP.Net MVC?

615


What are the possible razor view extensions?

572


What is the use of the default route?

604


What is the role of the jit compiler in .net framework?

629






what is use of entity container?

606


Explain two instances where routing is not implemented or required?

590


How do I use partial view?

533


What is the advantage of using asp.net routing?

595


What is the use .Glimpse in ASP.Net MVC

575


Explain the new features 3.5 framework against with the tool?

503


What is the 'page life cycle' of an ASP.NET MVC?

608


What is attribute routing in mvc?

577


Explain something about model, view and controllers in asp.net mvc?

558


Can you set the unlimited length for "maxjsonlength" property in config?

561