What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 21074 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > C# Interview Questions > What are circular references? Explain ho ...

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

Interview question and answer by: Tripati_tutu | Posted on: 12/21/2010 | Category: C# Interview questions | Views: 2276 | | Points: 40


Answer:

A circular reference is a series of references when a formula refers back to its own cell, either directly or indirectly and the last object references the first, resulting in a closed loop. Also it is a run-around where in two resources are interdependent on each other.

The methods to deal with circular references are:
• Weighted reference counting
• Indirect reference counting

There are some ways to handle problem of detecting and collecting circular references with the help of garbage collection.
• The system may explicitly forbid reference cycles.
• Systems ignore cycles if it have small amount of cyclic garbage.
• You can also periodically use a tracing garbage collector cycles.

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Tripati_tutu

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 2:21:10 PM