Reader small image

You're reading from  Java Coding Problems - Second Edition

Product typeBook
Published inMar 2024
PublisherPackt
ISBN-139781837633944
Edition2nd Edition
Right arrow
Author (1)
Anghel Leonard
Anghel Leonard
author image
Anghel Leonard

Anghel Leonard is a Chief Technology Strategist and independent consultant with 20+ years of experience in the Java ecosystem. In daily work, he is focused on architecting and developing Java distributed applications that empower robust architectures, clean code, and high-performance. Also passionate about coaching, mentoring and technical leadership. He is the author of several books, videos and dozens of articles related to Java technologies.
Read more about Anghel Leonard

Right arrow

245. Covering some garbage collector terminology

Garbage collection has its own terminology that it is essential to know in order to better understand how it works. Some of these terms are presented here; we start with epoch, single pass, and multiple passes.

Epoch

A GC works in cycles. A complete cycle of a GC is known as an epoch.

Single and multiple passes

A GC can handle its internal steps in a single pass (single-pass) or multiple passes (multi-pass). In the case of single-pass, the GC groups multiple steps and handles them in a single run. On the other hand, in the case of multi-pass, the GC handles multiple steps in a sequence of several passes.

Serial and parallel

A GC is considered serial if it uses a single thread. On the other hand, a GC is considered parallel if it uses multiple threads.

Stop-the-World (STW) and concurrent

A GC is of the type Stop-the-World (STW) if it has to stop (temporarily suspend) the application execution in order...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Java Coding Problems - Second Edition
Published in: Mar 2024Publisher: PacktISBN-13: 9781837633944

Author (1)

author image
Anghel Leonard

Anghel Leonard is a Chief Technology Strategist and independent consultant with 20+ years of experience in the Java ecosystem. In daily work, he is focused on architecting and developing Java distributed applications that empower robust architectures, clean code, and high-performance. Also passionate about coaching, mentoring and technical leadership. He is the author of several books, videos and dozens of articles related to Java technologies.
Read more about Anghel Leonard