Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How Garbage Collector identifies the objects which are not
in use?

Answer Posted / rahul veer

Garbage Collector determines which objects are no longer
being used by examining the application's roots. In Dot Net
each and every application has a set of roots. Each root
either refers to an object on the managed heap or is set to
null. An application's roots include global and static
object pointers, local variables and reference object
parameters on a thread's stack, and CPU registers. The
garbage collector has access to the list of active roots
that the just-in-time (JIT) compiler and the runtime
maintain. Using this list, it examines an application's
roots, and in the process creates a graph that contains all
the objects that are reachable from the roots. Objects that
are not in the graph are unreachable from the application's
roots. The garbage collector considers unreachable objects
as garbage and not in use.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What you mean by routing in asp.net mvc?

1003


What is edm (entity data model)? : Entity framework

992


What are the 3 segments of the default route, that is present in an ASP.NET MVC application?

1030


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

1076


Explain how you can implement Ajax in MVC?

939


What is an asynchronous controller in asp.net mvc?

974


What is RouteConfig.cs in ASP.Net MVC 4?

1016


Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).

2231


Explain the advantage of packaging over xcopy in .net?

920


What are Non Action methods in ASP.Net MVC?

1000


what is model first approach?

1042


Explain the advantages of asp.net mvc over asp.net?

1036


Does razor engine supports for tdd?

1113


Is it possible to share a view across multiple controllers?

889


What is disconnected scenario? : Entity framework

1009