[Go to site: main page, start]

0% found this document useful (0 votes)
3 views5 pages

Java Concurrency and Garbage Collection

The document discusses Java Concurrency and JVM, focusing on memory barriers and garbage collection processes. It outlines the steps involved in garbage collection, including marking and normal deletion, as well as generational garbage collection strategies. The document emphasizes the importance of object lifespan in determining garbage collection frequency across different JVM generations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

Java Concurrency and Garbage Collection

The document discusses Java Concurrency and JVM, focusing on memory barriers and garbage collection processes. It outlines the steps involved in garbage collection, including marking and normal deletion, as well as generational garbage collection strategies. The document emphasizes the importance of object lifespan in determining garbage collection frequency across different JVM generations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

I.

Java Concurrency
Java Concurrency, A(nother) Peek Under the Hood (Oracle’s video)
1. Memory barriers (at 18:00 above video)

II. JVM
1. Garbage collector
Ref [Link]
1.1 Garbage steps: Marking, Normal deletion (included: Deletion with Compacting –
reduce fragment)
 Marking

 Normal deletion
Step 2.1: Deletion with compacting
1.2 Generational Garbage Collection
 Time to live an object in java are usually short (by statistic as bellow picture)
 JVM Generations
When object is alive in long time, it will be moved to next generation. With older
generation, frequency scan these object will be less than younger generation

You might also like