gpt4 book ai didi

java - 标记-清除算法JAVA

转载 作者:行者123 更新时间:2023-11-30 07:06:48 25 4
gpt4 key购买 nike

标记-清除算法有“stop the world”的缺点,这意味着什么?世界指的是什么?为什么它会让世界停止运转?

最佳答案

关于这个算法的简单谷歌搜索带来了 this作为第一个网站(至少对我来说)

The main disadvantage of the mark-and-sweep approach is the fact that that normal program execution is suspended while the garbage collection algorithm runs. In particular, this can be a problem in a program that interacts with a human user or that must satisfy real-time execution constraints. For example, an interactive application that uses mark-and-sweep garbage collection becomes unresponsive periodically.

所以基本上你的程序只会在内存释放期间卡住。

关于java - 标记-清除算法JAVA,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39962924/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com