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 separation of concerns in asp.net mvc?

589


what is minimum requirement for entity framework applications to run?

570


Where is tempdata stored?

534


Which is the default http method for an action method?

501


How we can add the css in mvc?

577






what is more complex to implement property, methods or event? how can I define criteria to compare the difficulty of implementation between them? for example the number of methods wanted to implements property is 2 methods. how many methods I need it to implements events?

1684


Explain test driven development (tdd) ?

557


What is meant by domain model?

532


What is ViewStart Page in ASP.Net MVC?

568


What is tempdata?

607


What is the use .Glimpse in ASP.Net MVC

565


How large is the .net framework 3.0?

551


What is presentation framework?

537


Explain dependency resolution?

610


What are the main components of .net framework?

538