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 global.asax file used for?
Where can I get the details on migration of existing projects using various technologies to asp.net?
How can you dynamically add user controls to a page?
Explain what is an abstract class?
How can we provide the WebParts control functionality to a server control?
Explain the asp.net mvc request life cycle? : asp.net mvc
Can I have a unique key as foreign key?
Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?
What are the features of asp.net mvc?
Describe the sequence of action takes place on the server when ASP.NET application starts first time?
Is asp.net mvc still used? : Asp.Net MVC
How does a web application session work?
What are the validation controls available in ASP.NET?
If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?
In order to get assembly info which namespace we should import?