How garbage collection is done in Java is related to Net?

I want to know the difference between the two, or they are the same

Solution

This problem is irresponsible

First, there is no specification for Java or Net how to implement garbage collection Therefore, in Java or Net, there is no "GC completion method" literally

Secondly, the details of implementing GC are for Java and Net. For any vendor, GC may change with each platform, major version, minor version and even patch version In addition, some Java implementations allow you to choose between different garbage collectors using command - line options

Finally, if GC can work at the request of the application, it can work in Java or Net implementation is not important For Java, the answer is that it can be applied to most applications (exceptions are usually systems / applications with hard real-time requirements or very strict memory constraints.)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>