0

In one of the interview, interviewer asked me the name of algorithm used by Garbage collection in .NET for memory cleanup. Can some one suggest me the name? Please not that i am aware of how it is done(managed code..GCRoots..Generations..etc).

scokmen
  • 571
  • 3
  • 19
SKS
  • 220
  • 3
  • 12
  • 2
    Maybe this will help you: http://stackoverflow.com/questions/5422918/how-does-garbage-collection-and-scoping-work-in-c I think tylerl's answer is the one you want. – Idos Dec 01 '15 at 12:42

1 Answers1

1

Thanks @Idos.

Name of algorithm is "mark-and-sweep algorithm". I guess this is what interviewer wanted to know. It is very well descirbed at: link

SKS
  • 220
  • 3
  • 12