What are circular references? How garbage collection deals with circular references.

What are circular references? Explain how garbage collection deals with circular references.

A circular reference is a run-around wherein the 2 or more resources are interdependent on each other rendering the entire chain of references to be unusable.

There are quite a few ways of handling the problem of detecting and collecting cyclic references.

1. A system may explicitly forbid reference cycles.

2. Systems at times ignore cycles when they have short lives and a small amount of cyclic garbage. In this case a methodology of avoiding cyclic data structures is applied at the expense of efficiency.

3. Another solution is to periodically use a tracing garbage collector cycles.
Other types of methods to deal with cyclic references are:
- Weighted reference counting
- Indirect reference counting
How to add controls dynamically to the form using C#.NET.
Explain how to add controls dynamically to the form using C#.NET. - The following code can be called on some event like page load or onload of some image or even a user action like onclick
What are Extender provider components?
C#.Net - What are Extender provider components? Explain how to use an extender provider in the project. - An extender provider is a component that provides properties to other components...
Configuration files in .Net. Different types of configuration files
Describe the configuration files in .Net. Different types of configuration files. - The Machine.Config file, which specifies the settings that are global to a particular machine...
Post your comment