7 Things About JVM ZGC (Z Garbage Collection)

- What:

  1. Since Java 11 (Linux/x64), macOS/Windows: Java 14.
  2. Goals:
    • Max pause times (1) of a few milliseconds.
    • Pause times do not increase with the heap or live-set (2) size.
    • Handle heaps ranging from a 8MB to 16TB in size.
  3. Features:
    • Concurrent
    • Region-based (3)
    • Compacting (4)
    • NUMA-aware (5)
    • Using colored pointers (6)
    • Using load barriers (7)
Read More

7 Things About Java Fork/Join Framework

- What:

  1. Since Java 7, in order to make it easier to write parallel programs, the implementation of the ExecutorService interface.
  2. Using divide and conquer approach to helps you take advantage of multiple processors
  3. Worker threads that run out of things to do can steal tasks from other threads that are still busy.
  4. Abstract ForkJoinTask has 2 subclasses: RecursiveAction and RecursiveTask to use, which run with the ForkJoinPool.
Read More

List of posts: