I was going through link Java - available garbage collection algorithms to understand available JVM garbage collection algorithm and got confused.
As per my understanding there will be some standard GC algorithm which different JVM vendors implement to create garbage collector.
Now please help me to understand whether below are algorithm or implementation of algorithm:
- Serial,
- Parallel,
- CMS,
- G1,
What I think these are types of garbage collectors which implements some specific algorithm (name of algorithms which I don't know).
Also I was going through white paper published on http://www.oracle.com/technetwork/java/javase/tech/memorymanagement-whitepaper-1-150020.pdf regarding JVM garbage collection but unable to get clear difference between garbage collection algorithm and garbage collector.
Some where document mentioned "Young Generation Garbage Collection Algorithm/ Old Generation Garbage Collection Algorithm".
Does it mean Serial Garbage Collector (type of garbage collector) uses "young generation garbage collection algorithm" as well as "old generation garbage collection algorithm" to do GC on young and old generation area respectively.
Please help me to get clear understanding of type of algorithm and type of garbage collector.