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 does Garbage collector(GC) works in .net

Answer Posted / dilip tiwari

Basically Memory is divided into three part.Generation one,
Generation two and Generation three. Generation one is
small,Generation two is midium and generation three is
large in size, When we create any object by using new
keyword system will first calculate the bits require by the
object then check the bits avialble in memory (Generation
one) if bits found then allocate and point that using
Nextptrobj pointer. If there is no bits present then GC
come into picture. When GC run first it will check of
reference object know as GCRoot. These are by default
always reachable it mark these as live object. Then check
for objects pointed by these object it mark them also live
objects. It continue in this manner iterating through all
live object. As process finish all objects mark as live and
remaning objects are discarded from the memory and used by
the other objects.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is session in web technology?

909


What is the differences between a primary key and a unique key in sql server?

1007


In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?

1013


Can you explain one critical mapping? Performance issue which one is better? Whether connected lookup tranformation or unconnected one?

1214


What is the advantage of using Windows authentication in a Web application?

1035


How to display validation messages in one control?

941


Differentiate between early binding and late binding.

1023


Explain http handlers? Where we can use the http handlers?

1180


How to implement role based security in asp.net mvc? : Asp.Net MVC

975


What are directives in asp.net?

906


What is server side routing?

876


What is a session in asp.net?

986


Explain what is event bubbling?

980


How you can stop the validation of ASP.NET controls from client side?

982


What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

2304