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...

Why doesn't the .NET runtime offer deterministic destruction

Answer Posted / kirti

Because of the garbage collection algorithm. The .NET garbage collector works by periodically running through a list of all the objects that are currently being referenced by an application. All the objects that it doesn't find during this search are ready to be destroyed and the memory reclaimed. The implication of this algorithm is that the runtime doesn't get notified immediately when the final reference on an object goes away - it only finds out during the next sweep of the heap.

Futhermore, this type of algorithm works best by performing the garbage collection sweep as rarely as possible. Normally heap exhaustion is the trigger for a collection sweep.

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 lazy loading in entity framework?

1026


What is connected scenario? : Entity framework

1008


what is entity graph in entity framework?

1059


What is the use of razor view engine?

914


what is complex type?

954


Explain unit test done by tester on development team?

942


The order of the filters that get executed, if the multiple filters are implemented?

978


why DotNetFramework is included in building a software

2619


How to Redirect Tracing to a File

989


What is ViewData and TempData in ASP.Net MVC?

997


Can I remove .net framework?

935


What is difference between razor and web form engine?

1031


explain what is ado.net entity framework?

997


What are Model Binders in ASP.Net MVC?

1179


mention what is code first approach and model first approach in entity framework?

1060