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

Difference between int and int32

1 Answers  


Can I add mvc testcases in visual studio express?

0 Answers  


About DTS package ?

1 Answers   Accenture, Grafotech,


Do you know about the new features in ASP.Net MVC 4 ?

0 Answers  


What is page life cycle?

0 Answers  






mention in what all scenarios entity framework can be applicable?

0 Answers   Microsoft,


How do you handle variable number of segments in a route definition?

0 Answers  


What are child actions in ASP.Net MVC?

0 Answers  


Which is the institute which also caters to your personal development other than subject.

1 Answers   TCS,


what is a mvc in asp.net?

3 Answers   Cap Gemini, Elsinoir Technologies, HCL,


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

0 Answers  


What are scaffold templates in mvc?

0 Answers  


Categories