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 meant by server side scripting?
How can you ensure a permanent cookie?
Describe in brief .net framework and its components.
A web service can only be written in .net? State whether true or false.
What is web router?
Fetch one page value to another page without using state-managment ?
What is the difference between sealed vs static class?
What is sta?
What are the two properties that are common on every validation control?
What is the use of placeholder control? Can we see it at runtime?
Can we handle the error and redirect to some pages using web.config?
Why is xap important?
What is custom attribute?
Whats the difference between abstract factory pattern and factory pattern?
What do you mean by authorization?