Why doesn't the .NET runtime offer deterministic destruction



Why doesn't the .NET runtime offer deterministic destruction..

Answer / 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

More Dot Net Framework Interview Questions

Explain what languages does the .net framework support?

0 Answers  


Iam using an asp.net application . i want to update one of my table in database at 4pm every day how it is possible.

6 Answers   ABC, Evalueserve,


Name a few different return types of a controller action method?

0 Answers  


what is client wins and store wins mode in entity framework concurrency?

0 Answers   Microsoft,


How to use multiple submit buttons in asp.net mvc?

0 Answers  






What are html helpers in asp.net mvc?

0 Answers  


js fn to go to the particular page when enter is clicked

1 Answers  


What are the options can be configured in AJAX helpers?

0 Answers  


Changes to which portion of version number indicates an incompatible change

1 Answers  


How we can multiple submit buttons in ASP.Net MVC

0 Answers   B-Ways TecnoSoft,


How do I use partial view?

0 Answers  


What is Globalizationa and Localization

1 Answers  


Categories