Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

can we call the garbage collector to run explicicitly?

6 Answers   Kanbay, Volvo,


How do you register the dotnet component or assembly ?

1 Answers   Accenture, BirlaSoft,


What are the properties of Thread class?

1 Answers  


Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?

0 Answers  


I have a GridView on web form, and a column in a grid is a linkbutton to open popup..., my problem is when i click on link button in a gridview popup opens as well works fine. but when i click on link button once again my popup window doesnt open. Can any one help please...

2 Answers  






Where The Inheritence is useful?How we decide the situation of inheritence

2 Answers  


What is the need of Action Filters in ASP.Net MVC

0 Answers   B-Ways TecnoSoft,


what is mean by versioning? Please answer me. Advance thanks.

2 Answers   Excel,


how to maintain the session state? what is Abstract class and interface and inheritence with example?

2 Answers  


What was the problem in traditional component why side by side execution is supported in .net ?

1 Answers   MMTS,


What is Jit compilers?.how many are available in clr

1 Answers  


What are the advantages of asp.net mvc?

0 Answers  


Categories