Introduction to common GC algorithms (Parallel/CMS/G1): Learn the new by reviewing the past

tags: JVM core technology 32 lectures

GC is the abbreviation of the English vocabulary Garbage Collection, which is generally translated as "garbage collection" in Chinese. Of course, sometimes in order to make the text smoother, "garbage collection" is also said. It is generally believed that "garbage collection" and "garbage collection" mean the same thing. In addition, GC also means "garbage collector", which is expressed in English as Garbage Collector. In this section, we will explain in detail the commonly used GC algorithms.

f37a9c99-3c14-4c8c-b285-0130a598c756.jpg

Gossip GC

If we do business, we need warehouses to store supplies. If all warehouses need to be built by the company, the cost will be too high. The average person can't play it, and the efficiency is not high. It is difficult to make money if the cost is not controlled. Therefore, modern society has a spirit of sharing and a sense of leasing, which has greatly improved the resource utilization rate of the entire society.

For example, in a supply chain, company A is transferred to company B, and company B is transferred to company C. Then each company's own processing workshop and private warehouse are similar to thread space, and there will be corresponding pipelines in the factory. Because each company/salesman has limited energy, this private space cannot be infinitely large.

The public warehouse is similar to the heap memory, which is much larger than the private space, and it is very convenient for other companies to access the materials, or they can be accessed directly, or they can be accessed by locking them with keys. Obviously, this system needs effective management for the entire warehousing system to function well. For warehouses that are no longer in use, we need to say hello that we don’t need it, or the company has to pay for it all the time, which is actually a waste of company money and social resources. This is similar to memory release.

You can also use the shared workstations in the maker space as an analogy, the workstations (memory) are limited and fixed. Everyone can rent (apply for memory) and take

Intelligent Recommendation

A brief introduction of the GC marker clearance algorithm. Serial GC, parallel GC, CMS GC, G1 GC summary. How to choose GC?

GARBAGE Collection. Although many people refer to GCs as garbage collectors, it is not only recycling, but more work is managed.。 Article catalog Tag cleaning algorithm Why do I need GC? Tag (Mark) Cl...

Comparison of G1, CMS and PARALLEL GC

This article is just a test of the performance comparison of different GC algorithms in a real-world environment. This time we are still doing the same test, but we have added tests for the G1 recycle...

Learn the new by reviewing the past, LeetCode programming question series ---1. Convert hexadecimal

Topic: Receive an int type parameter and output its binary, octal, and hexadecimal form in String type. My solution: Take conversion to binary as an example: "Elegant" solution: Gain: The bi...

Learn the new by reviewing the past, LeetCode programming question series - 2. The zero at the end

qusetion:Design an algorithm to calculate the number of tail zeros in n factorial;  Problem-solving idea: There are many ways to solve this problem, such as finding the factorial first, and takin...

Spring reviewing the past and learning the new: WEB articles

Before preparing to write code, we must first import the following necessary libraries into the project: spring-framework-2.5.6\dist\spring.jar  spring-framework-2.5.6\dist\modules\spring-webmvc....

More Recommendation

Reviewing the past and learning the new: thread binary tree

The clue binary tree is improved on the basis of the binary tree. Two variables are added to the original binary tree node to record whether the left and right children of the node are clues. We stipu...

20180824 TOMCAT reviewing the past and knowing the new

Reference original address: Structure diagram of Tomcat Server     This file describes how to start Tomcat Server   Element name     Attributes     Explanation  ...

Architecture diagram of reviewing the past and learning the new

Suddenly I thought of a passage in the book "My Castle in the Sky" by Teacher Li Lewei: "Although I don't raise birds, there is a bird's voice every morning. There is no need to hang a ...

JavaScript reviewing the past and knowing the new----Array.sort()

By default, the sort() method will sort each item in the array from small to large. In order to achieve sorting, the sort() method will call the toString() transformation method of each array item, an...

[Reviewing the past and knowing the new] CSS study notes (introduction to the inner margin of the box)

CSSBox margin   In this section we start to introducePadding。 The Padding property is used to set the padding, and the padding refers toThe distance between the border and the displayed content。 ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top