How does Garbage collector(GC) works in .net
Answer Posted / archana
In .NET Garbage Collector maintained by CLR. The process of
GC is reclaim the memory of objets which is no longer
referenced by our program.Next thing is GC runs
undeterministicly because of that we can't assure we the
object will be released from the Heap Location.But the CLR
maintain a Logical Pointer to every object which referenced
by our program. In some amount of time the GC look out the
objects which is reachable from Logical Pointer. whatever
the object reachable from pointer it create a map those
objects. After that it will reclaim the memory of objects
those are not reachable from the pointer.This is the
process of how the GC clear the memory of Object.
Is This Answer Correct ? | 43 Yes | 9 No |
Post New Answer View All Answers
Define managed code and managed data in .net?
Define web services in asp.net.
How many ways are there to maintain a state in .net? What is view state?
What is session in asp.net?
What is repository pattern in mvc.net? : asp.net mvc
What is variable and constant in .net programming language?
How response object is related to asp's response object?
What r the asp.net list controls and diff. Between them?
What are assemblies and namespaces and explain the difference between them ?
Can you explain architecture of your project ?
What is server components?
What are the advantages of Web API?
Which is faster viewbag or viewdata?
Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?
Why session is more secure than cookies?