Garbage Collection

  • Garbage collection is the mechanism that reclaims the memory resources of an object when it is no longer referenced by a variable.
  • .Net Runtime performs automatically performs garbage collection, however you can force the garbage collection to run at a certain point in your code by calling System.GC.Collect ().
  • Garbage Collection is always running with low priority thread in back ground of an application.
  • Advantage of Garbage collection is it prevents programming error that could otherwise occur by incorrectly deleting or failing to delete objects.

0 comments :

Post a Comment

> Related Posts with Thumbnails
 

Copyright © 2012. GS dot net - All Rights Reserved - Design by BTDesigner - Proudly powered by Blogger