Net-informations.com
SiteMap  | About    

What are circular references

Circular reference is situation in which two or more resources are interdependent on each other causes the lock condition and make the resources unusable . It 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 . There are methods to deal with circular references are:

  1. Weighted reference counting
  2. Indirect reference counting

There are some ways to handle problem of detecting and collecting circular references with the help of garbage collection. The very high level view of how the garbage collector works is:

  1. Start with locals, statics and GC pinned objects. None of these can be collected

  2. Mark every object which can be reached by traversing the children of these objects

  3. Collect every object which is not marked

This allows for circular references to be collected in a good manner. So long as none of them are reachable from an object known to be uncollectable then the circular reference is essentially irrelevant.

Garbage Collection

Memory management is a primary thing for any application. The .Net Framework provides a new mechanism for releasing unreferenced objects from the memory ,this process is called Garbage Collection (GC). In some rare situations, forcing a Garbage Collection may improve your application's performance. The garbage collection (GC )class provides a GC.Collect method, which you can use to give your application some direct control over the garbage collector. More about..... Garbage Collection









net-informations.com (C) 2017    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.