Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. garbage collection

garbage collection

Scheduled Pinned Locked Moved ASP.NET
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 4708077
    wrote on last edited by
    #1

    which algorthim is used in the garbage collection?

    raja

    D S 2 Replies Last reply
    0
    • M Member 4708077

      which algorthim is used in the garbage collection?

      raja

      D Offline
      D Offline
      dilipv 0
      wrote on last edited by
      #2

      hi raja, Garbage collection is used for releasing all the resource occupied by the program and it's variable, so that another application can use these resources easily. Garbage Collection is itself algorigth which call itself at the end of the program. It is the last method of any program. It first try to find out which program variable and resources no longer needed/referenced by the program. If it find's that all the variable and resources no longer needed by the program, then it immediately calls Garbage collection. Garbage Collection stores all the necessery information in the persistence medium then release the memory occupied by the variables. Then close all the open database and network connections. For this purpose Garbage Collection uses memory referencing, network connections and database connections referncing. If referencing doesn't exist, it call releasing of memory and other resources. Hope this will help you. Thanks & Regards Dilip Kumar Vishwakarma

      Programmer .Net Consulting

      1 Reply Last reply
      0
      • M Member 4708077

        which algorthim is used in the garbage collection?

        raja

        S Offline
        S Offline
        Sandeep Akhare
        wrote on last edited by
        #3

        I don't know the specific name of the Algorithm but Based on two simple tendencies 1.Recently created objects tend to have a short life. 2.The older an object gets, its necessity tends to be higher and it is assumed to live longer. Do you want exact name ? Google it you will get that name also share with us ;P

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups