Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Why Garbage collector has only 3 generations adn how GC allocate memeory to generation 0 to 2 ?

$
0
0

Hello All,

I have very basic question about GC, I am learning about GC and I know about its execution algorithm of generation 0 to generation 2.

I have below two questions about GC .

1. How GC decide the specific amount of memory need to allocate the Generation 0, Generation 1 and Generation 2 , Is there any specific strategy that GC allocate some amount of memory to each generation ?

 

2. Why there are only 3 generations in GC , Why not more ?

Thanks in advance,

Aniruddha


Viewing all articles
Browse latest Browse all 1710

Trending Articles