What is GC (Garbage Collection) and how it works



What is GC (Garbage Collection) and how it works..

Answer / kirti

One of the good features of the CLR is Garbage Collection, which runs in the background collecting unused object references, freeing us from having to ensure we always destroy them. In reality the time difference between you releasing the object instance and it being garbage collected is likely to be very small, since the GC is always running.

[The process of transitively tracing through all pointers to actively used objects in order to locate all objects that can be referenced, and then arranging to reuse any heap memory that was not found during this trace. The common language runtime garbage collector also compacts the memory that is in use to reduce the working space needed for the heap.]

Heap:

A portion of memory reserved for a program to use for the temporary storage of data structures whose existence or size cannot be determined until the program is running.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

How to bind table colum with gridview column?

0 Answers  


What is code first? : Entity framework

0 Answers  


Mention some action filters which are used regularly in ASP.Net MVC?

0 Answers  


what are the aggregate functions in ASP.NET?

1 Answers   CTS, IBM, Zylog,


Where is tempdata stored?

0 Answers  






Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?

0 Answers  


what is entity framework?

0 Answers   Microsoft,


Is it possibe to run 2 aplication on single m/c, one App is on .Net Framework 1.0 and another one is on .Net Fremework 2.0?

7 Answers  


What is the difference between renderaction and renderpartial?

0 Answers  


How do I change the permission set for a code group

1 Answers   4Cplus,


What is the CLS

1 Answers  


What is the difference between adding routes, to a webforms application and to an mvc application?

0 Answers  


Categories