What are the different generaions of Garbage Collection and
how do they work
Answer Posted / vijay
there r 3 generations. they r gen0,gen1,gen2.when objects r
created and buffer is full then garbage collector is called
and the unnecessary objects r removed based on the
priority.this is first generation ie.,gen0.now new objects
will be created.this generation is called gen1.when this is
also full then the unnecessary will be collected and cleaned.
and when new objects come then old objects will be placed in
gen0 and new objects will be kept in gen1.in this way
process continues and when gen2 also filled completely then
gen0 will be cleaned completely.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is dataset and dataadapter in c#?
What is icollection in c#?
what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?
What does immutable mean in c#?
Can non-default constructors be used with single call sao?
What is “using” statement in c#?
Explain nullable types in c#?
What is the difference between static and private constructor?
what are some characteristics of an array?
What are jagged arrays used for?
Why singleton is sealed?
What is the use of getcommandlineargs() method in c#.net?
In .Net, what is an assembly? Also explain the type of assembly.
What floating point types is supported in C#?
What is difference between const and static in c#?