Tell me about the internal working of Garbage collector?
Answers were Sorted based on User's Feedback
Answer / kanth
The main objective of GC is Memory Management....
Gc wil take initiative when ever the application meemory is
low...we hav Finalize() method which runs implicitly...and
Dispose() method which we hav to kal Explicity....
Gc identifies the unused objects with reference counting
concept.
Finalize() method runs implicitly and free the resources if
the object havin no references...in the case of Dispose()
method it wont mind if the reference r ther.....
Gc maintain 4 Generation...start with 0 ..ends with 3
if GC released the resources using
Finalize method() still u can get the object..coz dis
method havin backup...it stores in generation0-3
| Is This Answer Correct ? | 7 Yes | 1 No |
GC = Garbage Collector. Its non-deterministic process. When
there are no references to an object and when the system
memory is too low. Then GC runs to deallocate those memory
for non refernced objects. It also moves objects from one
memory allocation to another.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the .net framework and how does it work?
mention what is the key advantage of using entity framework or ef?
what is the use of final method
What is strong name and which tool is used for this ?
4 Answers Accenture, BirlaSoft,
what are background threads? give ex?
what is difference b/w .net 1.1 and .net 2.0. I need Answer in c# , asp.net and ado.net Level.Like c#1.1 and c#.1.1 , ado.net1.1 and ado.net2.0 and asp.net1.1 and asp.net2.0
How does work clr?
How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?
Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?
Types of assemblies that can be created in dotnet ?
What is Reference type and value type
What is the difference between STA and MTA?