并行和CMS垃圾收集之间有什么区别

时间:2018-05-10 00:24:18

标签: java memory-management memory-leaks garbage-collection

我是GC的新手,并且一直试图通过阅读不同的文章来理解。我读得越多,我就越来越困惑。我很难理解parallel和cms GC之间的区别。 一些文章说“并行使用多个GC线程,而CMS只使用一个。”有人说“CMS uses multiple threads (“concurrent”) to scan through the heap (“mark”) for unused objects that can be recycled (“sweep”)"?有人可以用简单的语言解释我吗?。And what is initial mark, remark, concurrent mark and sweeping phase in CMS

0 个答案:

没有答案