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
What is advantage of code behind coding in ASP.NET?
Explain the asp.net mvc folder conventions? : asp.net mvc
What is Web Server Control Templates.?
Can we have a web application running without web.config file?
How to set the pane area to transparent of a scrollPane component.?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
Why is it preferred to not use finalize for clean up?
What is a page life cycle? What are the events in a page life cycle?
When we use cookie less session? Explain its working?
What is the life cycle of web page?
How do I open an ashx file in windows 7?
What is virtual directory in asp.net?
What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?
What is viewstate in asp net with example?
What is ispostback method in asp.net?