"The more you read, the more things you will know. The more that you learn, the more places you'll go" Dr. Seuss

3 books on Garbage Collection [PDF]

Updated: Nov 07, 2025 | Author:
When, while allocating memory for the next object, it turns out that there is not enough free memory in the managed heap, the Garbage Collector (GC) is started. If there is no reference to a given object, then the object is deleted and the free space in the heap is compressed to a compact state.

From the books you'll know that when searching for unreachable objects, GC doesn't analyze all objects in a row. To optimize the operation, each of the objects belongs to a certain generation. It is believed that the longer an object is in memory, the greater the probability that it will remain there. For example, an object containing Main in C# will remain in memory until the end of the application. On the other hand, objects that have been placed on the heap recently (for example, objects in a method) are likely to become unreachable soon. Based on the above, each object in the heap belongs to one of the following generations:

Generation zero is the youngest generation that contains recently placed objects, for example, a temporary object. Garbage collection most often occurs in this generation.

Generation one is an object that has survived one garbage collection process. It is a buffer between short-lived and long-lived objects.

Generation two is an object that has survived more than one garbage collector run.

The garbage collector is usually called automatically, but it can also be called programmatically. You can also specify the generation up to which the GC should be started.

Here are some PDF books on garbage collection:

Java GC Tutorials - Herong's Tutorial Examples
2019 by Herong Yang


Download PDF

Professional C#
2004 by Simon Robinson


Download PDF

The Compiler Design Handbook: Optimizations and Machine Code Generation
2018 by Y.N. Srikant, Priti Shankar


Download PDF

See also: Top 10 eBook Organizers



How to download PDF:

1. Install Gooreader

2. Enter Book ID to the search box and press Enter

3. Click "Download Book" icon and select PDF*

* - note that for yellow books only preview pages are downloaded
Author: Maria Lin
Maria Lin, is a seasoned content writer who has contributed to numerous tech portals, including Mashable and bookrunch, as a guest author. She holds a Master's degree in Journalism from the University of California, where her research predominantly concentrated on mobile apps, software, AI and cloud services. With a deep passion for reading, Maria is particularly drawn to the intersection of technology and books, making book tech a subject of great interest to her. During her leisure time, she indulges in her love for cooking and finds solace in a good night's sleep. You can contact Maria Lin via email maria@bookrunch.com