Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Why doesn't the .NET runtime offer deterministic destruction

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Does razor engine supports for tdd?

1217


Name a few different return types of a controller action method?

1189


Is .net framework 4.8 the last version?

1089


Can you use Razor code in Javascript in ASP.Net MVC?

1246


What is code first? : Entity framework

1141


what is complex type?

1050


Explain Model, view and Controllers in Asp.Net MVC?

1110


Which is the root namespace for fundamental types in .net framework?

1047


Why is entity framework used?

1115


How we can handle the exception at controller level in ASP.Net MVC?

1154


Can you explain renderbody and renderpage in asp.net mvc?

1071


What are the options can be configured in AJAX helpers?

1049


mention what is the key advantage of using entity framework or ef?

1065


What is meant by viewdata?

1044


What are the levels at which filters can be applied in an asp.net mvc application?

1201