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
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. About Garbage collector

About Garbage collector

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpquestion
3 Posts 2 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.
  • S Offline
    S Offline
    sujithkumarsl
    wrote on last edited by
    #1

    Suppose i have 2 .net exes test1.exe and test2.exe is Garbage collector common for these two? Do we have separate garbage collector for each exe?

    My small attempt...

    L 2 Replies Last reply
    0
    • S sujithkumarsl

      Suppose i have 2 .net exes test1.exe and test2.exe is Garbage collector common for these two? Do we have separate garbage collector for each exe?

      My small attempt...

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Absolutely yes. Garbage collector is only one for any number of applications. However it will perform clearance based on application context. And application context is different for each application.

      Jinal Desai - LIVE Experience is mother of sage....

      1 Reply Last reply
      0
      • S sujithkumarsl

        Suppose i have 2 .net exes test1.exe and test2.exe is Garbage collector common for these two? Do we have separate garbage collector for each exe?

        My small attempt...

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        sujithkumarsl wrote:

        Suppose i have 2 .net exes test1.exe and test2.exe

        I'd assume that it collects the garbage of text1.exe, and then moves on to the next building. Test1 and Test2 both got their own garbage, and their own garbage-can.

        sujithkumarsl wrote:

        Do we have separate garbage collector for each exe?

        The builtin GC can handle multiple .NET executable on the same machine without additional configuration. So, in short, no.

        I are Troll :suss:

        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