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 needed for running an application built on winfx on the .net framework 3.0?

953


What is edm designer? : Entity framework

986


Describe the gac in the .net framework.

1018


What are the sub types of ActionResult?

1137


How does the 'page lifecycle' of asp.net mvc works?

1087


Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?

1181


What operating systems will the .net framework 3.0 be available for?

1020


What is a view engine?

965


How does the .net framework 3.0 relate to the .net framework 2.0?

1040


What is NonActionAttribute ?

1013


Explain ASP.NET MVC Identity and Security?

981


What are Code Blocks in Views?

1109


When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?

1340


What is the difference between model and entity?

1027


Can I add mvc testcases in visual studio express?

1007